Mercurial > pidgin.yaz
changeset 27232:3b2a2469ffbf
This works better.
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Mon, 22 Jun 2009 23:39:56 +0000 |
parents | e3907cfaeb02 |
children | 4ea129edc62c 324cc0d6ca0a |
files | libpurple/protocols/jabber/caps.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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); } }