pidgin.vv: ba535b40: Fix a GLib warning when add_stream fails...
maiku at soc.pidgin.im
maiku at soc.pidgin.im
Wed Jan 7 15:20:57 EST 2009
-----------------------------------------------------------------
Revision: ba535b40360bb540f8cf7e2dfcf181882cf9811c
Ancestor: 992f060b88b55f06a8579f7bbf3b2c846d11b785
Author: maiku at soc.pidgin.im
Date: 2009-01-07T20:18:44
Branch: im.pidgin.pidgin.vv
URL: http://d.pidgin.im/viewmtn/revision/info/ba535b40360bb540f8cf7e2dfcf181882cf9811c
Modified files:
libpurple/protocols/jabber/google.c
ChangeLog:
Fix a GLib warning when add_stream fails in google.c.
Thanks to mlundblad for finding it.
-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/google.c b7af0d88bf18077a96d53d1da009738a8b382991
+++ libpurple/protocols/jabber/google.c 153941f0d85cef836b2593466c3ee4278f98d8b5
@@ -79,7 +79,8 @@ google_session_destroy(GoogleSession *se
static void
google_session_destroy(GoogleSession *session)
{
- g_hash_table_remove(sessions, &(session->id));
+ if (sessions != NULL)
+ g_hash_table_remove(sessions, &(session->id));
g_free(session->id.id);
g_free(session->id.initiator);
g_free(session->remote_jid);
More information about the Commits
mailing list