Mercurial > pidgin
comparison libpurple/protocols/jabber/google.c @ 26006: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 | f671d406f62c |
children | 0605c1121613 |
comparison
equal
deleted
inserted
replaced
26005:83704757fa36 | 26006:d703474d6b81 |
---|---|
77 } | 77 } |
78 | 78 |
79 static void | 79 static void |
80 google_session_destroy(GoogleSession *session) | 80 google_session_destroy(GoogleSession *session) |
81 { | 81 { |
82 g_hash_table_remove(sessions, &(session->id)); | 82 if (sessions != NULL) |
83 g_hash_table_remove(sessions, &(session->id)); | |
83 g_free(session->id.id); | 84 g_free(session->id.id); |
84 g_free(session->id.initiator); | 85 g_free(session->id.initiator); |
85 g_free(session->remote_jid); | 86 g_free(session->remote_jid); |
86 g_free(session); | 87 g_free(session); |
87 } | 88 } |