libpurple/protocols/myspace/myspace.c

branch
soc.2007.msimprpl
changeset 17927
ba45a8cbae1b
parent 17924
191c78db42ae
child 17929
124c360364a8
--- a/libpurple/protocols/myspace/myspace.c	Fri Jun 01 06:17:54 2007 +0000
+++ b/libpurple/protocols/myspace/myspace.c	Fri Jun 01 06:20:23 2007 +0000
@@ -700,7 +700,7 @@
     g_hash_table_destroy(body);
     /* g_hash_table_destroy(userinfo); */
 	/* TODO: do we need to free userinfo here? */
-	msim_msg_free(userinfo);
+	/* msim_msg_free(userinfo); */
     g_free(s->message);
     g_free(s->who);
 } 
@@ -722,7 +722,7 @@
 
 	body_str = msim_msg_get_string(userinfo, "body");
     body = msim_parse_body(body_str);
-	g_free(body);
+	g_free(body_str);
 	g_return_if_fail(body != NULL);
 
     username = g_hash_table_lookup(body, "UserName");
@@ -730,7 +730,7 @@
     msg = (gchar *)data;
     serv_got_im(session->gc, username, msg, PURPLE_MESSAGE_RECV, time(NULL));
 
-	msim_msg_free(userinfo);  /* TODO: Should we? */
+	/* msim_msg_free(userinfo);   */ /* TODO: Should we? */
     g_hash_table_destroy(body);
 }
 
@@ -1056,7 +1056,7 @@
     g_strfreev(status_array);
     g_list_free(list);
     g_hash_table_destroy(body);
-    msim_msg_free(userinfo); /* TODO: right? */
+    /* msim_msg_free(userinfo);  TODO: right? */
     /* Do not free status_str - it will currently be freed by g_hash_table_destroy 
 	 * on session->user_lookup_cb_data. But this is questionable (TODO: unask) since
 	 * sometimes user_lookup_cb_data stores integers in gpointers, and sometimes

mercurial