Mercurial > pidgin.yaz
comparison libpurple/protocols/myspace/message.h @ 24764:c044eb54b7ac
Fix a leak in myspace prpl.
In myspace.c:msim_process_reply, the clone of 'msg' sent to the callbacks
were never freed. Also, do not unnecessarily dup a static string (which
needs to be marked for translation after the string freeze).
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Wed, 17 Dec 2008 20:50:49 +0000 |
parents | c1c464583f8c |
children |
comparison
equal
deleted
inserted
replaced
24763:a8643ca8d2e0 | 24764:c044eb54b7ac |
---|---|
91 | 91 |
92 gboolean msim_msg_send(struct _MsimSession *session, MsimMessage *msg); | 92 gboolean msim_msg_send(struct _MsimSession *session, MsimMessage *msg); |
93 | 93 |
94 MsimMessage *msim_parse(const gchar *raw); | 94 MsimMessage *msim_parse(const gchar *raw); |
95 | 95 |
96 MsimMessageElement *msim_msg_get(MsimMessage *msg, const gchar *name); | 96 MsimMessageElement *msim_msg_get(const MsimMessage *msg, const gchar *name); |
97 | 97 |
98 /* Retrieve data by name */ | 98 /* Retrieve data by name */ |
99 gchar *msim_msg_get_string(MsimMessage *msg, const gchar *name); | 99 gchar *msim_msg_get_string(const MsimMessage *msg, const gchar *name); |
100 GList *msim_msg_get_list(MsimMessage *msg, const gchar *name); | 100 GList *msim_msg_get_list(const MsimMessage *msg, const gchar *name); |
101 MsimMessage *msim_msg_get_dictionary(MsimMessage *msg, const gchar *name); | 101 MsimMessage *msim_msg_get_dictionary(const MsimMessage *msg, const gchar *name); |
102 guint msim_msg_get_integer(MsimMessage *msg, const gchar *name); | 102 guint msim_msg_get_integer(const MsimMessage *msg, const gchar *name); |
103 gboolean msim_msg_get_binary(MsimMessage *msg, const gchar *name, gchar **binary_data, gsize *binary_length); | 103 gboolean msim_msg_get_binary(const MsimMessage *msg, const gchar *name, gchar **binary_data, gsize *binary_length); |
104 | 104 |
105 /* Retrieve data by element (MsimMessageElement *), returned from msim_msg_get() */ | 105 /* Retrieve data by element (MsimMessageElement *), returned from msim_msg_get() */ |
106 gchar *msim_msg_get_string_from_element(MsimMessageElement *elem); | 106 gchar *msim_msg_get_string_from_element(MsimMessageElement *elem); |
107 guint msim_msg_get_integer_from_element(MsimMessageElement *elem); | 107 guint msim_msg_get_integer_from_element(MsimMessageElement *elem); |
108 | 108 |