# HG changeset patch # User Paul Aurich # Date 1245713996 0 # Node ID 3b2a2469ffbfece1dd543612c986e030ddc26d59 # Parent e3907cfaeb02ca963ffc5862be185ac4bbac1b45 This works better. diff -r e3907cfaeb02 -r 3b2a2469ffbf libpurple/protocols/jabber/caps.c --- a/libpurple/protocols/jabber/caps.c Mon Jun 22 23:36:56 2009 +0000 +++ b/libpurple/protocols/jabber/caps.c Mon Jun 22 23:39:56 2009 +0000 @@ -692,11 +692,11 @@ } 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); } }