Mercurial > pidgin.yaz
comparison libpurple/protocols/jabber/jabber.c @ 30166:8217f783463e
jabber: --leaks
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Sun, 18 Apr 2010 19:10:38 +0000 |
parents | 0f895633faeb |
children | 9134be6baaef |
comparison
equal
deleted
inserted
replaced
30160:211afed0548b | 30166:8217f783463e |
---|---|
840 | 840 |
841 if (!js->user) { | 841 if (!js->user) { |
842 purple_connection_error_reason(gc, | 842 purple_connection_error_reason(gc, |
843 PURPLE_CONNECTION_ERROR_INVALID_SETTINGS, | 843 PURPLE_CONNECTION_ERROR_INVALID_SETTINGS, |
844 _("Invalid XMPP ID")); | 844 _("Invalid XMPP ID")); |
845 g_free(user); | |
845 /* Destroying the connection will free the JabberStream */ | 846 /* Destroying the connection will free the JabberStream */ |
846 return NULL; | 847 return NULL; |
847 } | 848 } |
848 | 849 |
849 if (!js->user->node || *(js->user->node) == '\0') { | 850 if (!js->user->node || *(js->user->node) == '\0') { |
850 purple_connection_error_reason(gc, | 851 purple_connection_error_reason(gc, |
851 PURPLE_CONNECTION_ERROR_INVALID_SETTINGS, | 852 PURPLE_CONNECTION_ERROR_INVALID_SETTINGS, |
852 _("Invalid XMPP ID. Username portion must be set.")); | 853 _("Invalid XMPP ID. Username portion must be set.")); |
854 g_free(user); | |
853 /* Destroying the connection will free the JabberStream */ | 855 /* Destroying the connection will free the JabberStream */ |
854 return NULL; | 856 return NULL; |
855 } | 857 } |
856 | 858 |
857 if (!js->user->domain || *(js->user->domain) == '\0') { | 859 if (!js->user->domain || *(js->user->domain) == '\0') { |
858 purple_connection_error_reason(gc, | 860 purple_connection_error_reason(gc, |
859 PURPLE_CONNECTION_ERROR_INVALID_SETTINGS, | 861 PURPLE_CONNECTION_ERROR_INVALID_SETTINGS, |
860 _("Invalid XMPP ID. Domain must be set.")); | 862 _("Invalid XMPP ID. Domain must be set.")); |
863 g_free(user); | |
861 /* Destroying the connection will free the JabberStream */ | 864 /* Destroying the connection will free the JabberStream */ |
862 return NULL; | 865 return NULL; |
863 } | 866 } |
864 | 867 |
865 js->buddies = g_hash_table_new_full(g_str_hash, g_str_equal, | 868 js->buddies = g_hash_table_new_full(g_str_hash, g_str_equal, |