aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/purple/bpurple.h
diff options
context:
space:
mode:
authordequis <dx@dxzone.com.ar>2016-10-08 03:32:08 -0300
committerdequis <dx@dxzone.com.ar>2016-10-08 03:39:05 -0300
commit01d56c0c47f4d4642be4224b43c403918f3d4372 (patch)
tree20b99206f58d0326acb291cba4993321c507eb54 /protocols/purple/bpurple.h
parent58d285a4eec4f921be9de3c51341ef3d8729a999 (diff)
purple: Fix handling of empty, immediate roomlist results
Two issues here: 1. SIPE called in_progress(FALSE) immediately (which decreases refcount), before purple_roomlist_get_list() could return (which would normally increase refcount). The first refcount decrease steals it from the prpl, and bad things happen. Added an initialized flag to only do that decrease after it was increased first. This is similar to how pidgin sets a 'dialog' attribute after the purple_roomlist_get_list() call, and skips the unref if it's not set. 2. The code assumed that NULL return value means room listing not supported. That's not quite true, so now it checks in the prpl info to see if roomlist_get_list is defined. Also, made purple_roomlist_data more private.
Diffstat (limited to 'protocols/purple/bpurple.h')
-rw-r--r--protocols/purple/bpurple.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/protocols/purple/bpurple.h b/protocols/purple/bpurple.h
index ca7cf70e..39677b86 100644
--- a/protocols/purple/bpurple.h
+++ b/protocols/purple/bpurple.h
@@ -14,10 +14,4 @@ struct purple_data
guint next_request_id;
};
-struct purple_roomlist_data
-{
- GSList *chats;
- gint topic;
-};
-
#endif /* !BPURPLE_H */