pidgin: 83e8e601: Fix CID #370
rlaager at pidgin.im
rlaager at pidgin.im
Fri Nov 14 02:46:10 EST 2008
-----------------------------------------------------------------
Revision: 83e8e601ace847eada759a45e6fd4ad52288840f
Ancestor: 35f3279d89e9e708d5798f324fa079357a971739
Author: rlaager at pidgin.im
Date: 2008-11-14T06:25:48
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/83e8e601ace847eada759a45e6fd4ad52288840f
Modified files:
libpurple/protocols/simple/simple.c
ChangeLog:
Fix CID #370
-------------- next part --------------
============================================================
--- libpurple/protocols/simple/simple.c 42fc9ca312f0f4aff9bde7d8be531fbc0e7d9b50
+++ libpurple/protocols/simple/simple.c c0d9f70b68cf0fb22b0a597232f005b48d7f3275
@@ -1228,11 +1228,14 @@ static void process_incoming_notify(stru
if (purple_str_has_prefix(ssparts[i], "terminated"))
{
purple_debug_info("simple", "Subscription expired!");
- g_free(b->dialog->ourtag);
- g_free(b->dialog->theirtag);
- g_free(b->dialog->callid);
- g_free(b->dialog);
- b->dialog = NULL;
+ if (b->dialog)
+ {
+ g_free(b->dialog->ourtag);
+ g_free(b->dialog->theirtag);
+ g_free(b->dialog->callid);
+ g_free(b->dialog);
+ b->dialog = NULL;
+ }
purple_prpl_got_user_status(sip->account, from, "offline", NULL);
break;
More information about the Commits
mailing list