diff libpurple/protocols/myspace/message.h @ 22334:9479cf89a97d

In msimprpl, support dynamically-allocated strings in message element names, and use them in msim_msg_dictionary_parse(). Dynamically-allocated strings were used before, but MsimMessage didn't support them, so they were leaked. This change should fix the leaks. Closes #3281.
author Jeffrey Connelly <jaconnel@calpoly.edu>
date Mon, 25 Feb 2008 00:25:23 +0000
parents 44b4e8bd759b
children 68cc1a8a0d21
line wrap: on
line diff
--- a/libpurple/protocols/myspace/message.h	Mon Feb 18 19:22:39 2008 +0000
+++ b/libpurple/protocols/myspace/message.h	Mon Feb 25 00:25:23 2008 +0000
@@ -29,6 +29,7 @@
 typedef struct _MsimMessageElement
 {
 	const gchar *name;              /**< Textual name of element. */
+	gboolean dynamic_name;          /**< TRUE if 'name' is a dynamic string to be freed, not static. */
 	guint type;                     /**< MSIM_TYPE_* code. */
 	gpointer data;                  /**< Pointer to data, or GUINT_TO_POINTER for int/bool. */
 } MsimMessageElement;