cpw.malu.xmpp.attention: b03e6741: Patch from Darkrain42 to avoid a double-...

malu at pidgin.im malu at pidgin.im
Sun Nov 30 14:35:30 EST 2008


-----------------------------------------------------------------
Revision: b03e6741a6f1b8961fffc2f24ea2b73b921dac09
Ancestor: 6b840415367638d19ac530e383daf28233701a7f
Author: malu at pidgin.im
Date: 2008-11-30T19:34:11
Branch: im.pidgin.cpw.malu.xmpp.attention
URL: http://d.pidgin.im/viewmtn/revision/info/b03e6741a6f1b8961fffc2f24ea2b73b921dac09

Modified files:
        libpurple/protocols/jabber/jabber.c

ChangeLog: 

Patch from Darkrain42 to avoid a double-free on status values

-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/jabber.c	0a1f66421f27068024a9f0fbde2485bb605ca038
+++ libpurple/protocols/jabber/jabber.c	2bce4251ee056221e99bf0ce20ccbc55c0c3f061
@@ -1665,6 +1665,8 @@ GList *jabber_status_types(PurpleAccount
 
 	priority_value = purple_value_new(PURPLE_TYPE_INT);
 	purple_value_set_int(priority_value, 1);
+	buzz_enabled = purple_value_new(PURPLE_TYPE_BOOLEAN);
+	purple_value_set_boolean(buzz_enabled, TRUE);
 	type = purple_status_type_new_with_attrs(PURPLE_STATUS_AVAILABLE,
 			jabber_buddy_state_get_status_id(JABBER_BUDDY_STATE_CHAT),
 			_("Chatty"), TRUE, TRUE, FALSE,
@@ -1679,6 +1681,8 @@ GList *jabber_status_types(PurpleAccount
 
 	priority_value = purple_value_new(PURPLE_TYPE_INT);
 	purple_value_set_int(priority_value, 0);
+	buzz_enabled = purple_value_new(PURPLE_TYPE_BOOLEAN);
+	purple_value_set_boolean(buzz_enabled, TRUE);
 	type = purple_status_type_new_with_attrs(PURPLE_STATUS_AWAY,
 			jabber_buddy_state_get_status_id(JABBER_BUDDY_STATE_AWAY),
 			NULL, TRUE, TRUE, FALSE,
@@ -1693,6 +1697,8 @@ GList *jabber_status_types(PurpleAccount
 
 	priority_value = purple_value_new(PURPLE_TYPE_INT);
 	purple_value_set_int(priority_value, 0);
+	buzz_enabled = purple_value_new(PURPLE_TYPE_BOOLEAN);
+	purple_value_set_boolean(buzz_enabled, TRUE);
 	type = purple_status_type_new_with_attrs(PURPLE_STATUS_EXTENDED_AWAY,
 			jabber_buddy_state_get_status_id(JABBER_BUDDY_STATE_XA),
 			NULL, TRUE, TRUE, FALSE,


More information about the Commits mailing list