cpw.malu.ft_thumbnails: 6dccdae9: Added a function to destroy JabberData i...
malu at pidgin.im
malu at pidgin.im
Thu Jun 25 18:30:29 EDT 2009
-----------------------------------------------------------------
Revision: 6dccdae9e51472dd29ee57909dad288a622060fb
Ancestor: e8d97fd5bbdd11695df9dc44292fb47b1326ffcf
Author: malu at pidgin.im
Date: 2009-06-25T22:25:23
Branch: im.pidgin.cpw.malu.ft_thumbnails
URL: http://d.pidgin.im/viewmtn/revision/info/6dccdae9e51472dd29ee57909dad288a622060fb
Modified files:
libpurple/protocols/jabber/data.c
libpurple/protocols/jabber/data.h
ChangeLog:
Added a function to destroy JabberData instances.
To be used receiving data objects for "short-lived" objects (such as the
ones used for file transfer thumbnails, since they won't be cached).
-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/data.c 3045f63efcb4a86c445c0bafb4df5fe6bb9d6c56
+++ libpurple/protocols/jabber/data.c e7c80f39f38254ca96b48f50bcd871306c0aace4
@@ -92,6 +92,12 @@ jabber_data_delete(gpointer cbdata)
g_free(data);
}
+void
+jabber_data_destroy(JabberData *data)
+{
+ jabber_data_delete(data);
+}
+
const char *
jabber_data_get_cid(const JabberData *data)
{
============================================================
--- libpurple/protocols/jabber/data.h b3974dd1898cde78b06c5206cf47a55397af733c
+++ libpurple/protocols/jabber/data.h d84c3937f1cd59c08696199f5e7898f4e18c8d80
@@ -39,6 +39,10 @@ JabberData *jabber_data_create_from_xml(
XEP 0231 */
JabberData *jabber_data_create_from_xml(xmlnode *tag);
+/* destroy a JabberData instance, NOT to be used on data that has been
+ associated, since they get "owned" */
+void jabber_data_destroy(JabberData *data);
+
const char *jabber_data_get_cid(const JabberData *data);
const char *jabber_data_get_type(const JabberData *data);
More information about the Commits
mailing list