pidgin: 27cbb143: This works better.

darkrain42 at pidgin.im darkrain42 at pidgin.im
Mon Jun 22 19:45:33 EDT 2009


-----------------------------------------------------------------
Revision: 27cbb143be6f27d33256636206ac89b3adef8cd6
Ancestor: a00585d31b07f9985bf449d58bdad8febeab2f2c
Author: darkrain42 at pidgin.im
Date: 2009-06-22T23:39:56
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/27cbb143be6f27d33256636206ac89b3adef8cd6

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

ChangeLog: 

This works better.

-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/caps.c	6ad3c429ce91dd04b5534222a21f5772cb8d154d
+++ libpurple/protocols/jabber/caps.c	0ba18c47448c0685ea295f0778b144020680ec5a
@@ -692,11 +692,11 @@ void jabber_caps_get_info(JabberStream *
 	}
 
 	if (userdata->info && userdata->extOutstanding == 0) {
+		/* Start with 1 ref so the below functions are happy */
+		userdata->ref = 1;
+
 		/* We have everything we need right now */
 		jabber_caps_get_info_complete(userdata);
-
-		/* We need to destroy the structure, but it has 0 refs, so fake it. */
-		userdata->ref = 1;
 		cbplususerdata_unref(userdata);
 	}
 }


More information about the Commits mailing list