changeset 26088:d703474d6b81

Fix a GLib warning when add_stream fails in google.c. Thanks to mlundblad for finding it.
author Mike Ruprecht <maiku@soc.pidgin.im>
date Wed, 07 Jan 2009 20:18:44 +0000
parents 83704757fa36
children 6c8eabbef4d3
files libpurple/protocols/jabber/google.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/jabber/google.c	Wed Jan 07 20:10:07 2009 +0000
+++ b/libpurple/protocols/jabber/google.c	Wed Jan 07 20:18:44 2009 +0000
@@ -79,7 +79,8 @@
 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);