diff libpurple/protocols/myspace/message.c @ 24805:22fd7467f0cc

Fix a few small memleaks
author Mark Doliner <mark@kingant.net>
date Thu, 18 Dec 2008 01:53:49 +0000
parents c044eb54b7ac
children df7705d4b19a
line wrap: on
line diff
--- a/libpurple/protocols/myspace/message.c	Wed Dec 17 22:37:53 2008 +0000
+++ b/libpurple/protocols/myspace/message.c	Thu Dec 18 01:53:49 2008 +0000
@@ -1040,7 +1040,7 @@
 			/* Incoming protocol messages get tagged as MSIM_TYPE_RAW, which
 			 * represents an untyped piece of data. msim_msg_get_* will
 			 * convert to appropriate types for caller, and handle unescaping if needed. */
-			msg = msim_msg_append(msg, g_strdup(key), MSIM_TYPE_RAW, g_strdup(value));
+			msg = msim_msg_append_dynamic_name(msg, g_strdup(key), MSIM_TYPE_RAW, g_strdup(value));
 #ifdef MSIM_DEBUG_PARSE
 			purple_debug_info("msim", "insert string: |%s|=|%s|\n", key, value);
 #endif