libgaim/protocols/jabber/chat.c

changeset 14525
b278a2724686
parent 14254
77edc7a6191a
child 15157
4468338f4ad4
--- a/libgaim/protocols/jabber/chat.c	Wed Sep 06 03:12:05 2006 +0000
+++ b/libgaim/protocols/jabber/chat.c	Wed Sep 06 03:58:53 2006 +0000
@@ -205,7 +205,7 @@
 	GaimPresence *gpresence;
 	GaimStatus *status;
 	JabberBuddyState state;
-	const char *msg;
+	char *msg;
 	int priority;
 
 	room = g_hash_table_lookup(data, "room");
@@ -265,6 +265,7 @@
 	full_jid = g_strdup_printf("%s/%s", room_jid, handle);
 	xmlnode_set_attrib(presence, "to", full_jid);
 	g_free(full_jid);
+	g_free(msg);
 
 	x = xmlnode_new_child(presence, "x");
 	xmlnode_set_namespace(x, "http://jabber.org/protocol/muc");
@@ -618,7 +619,7 @@
 	GaimPresence *gpresence;
 	GaimStatus *status;
 	JabberBuddyState state;
-	const char *msg;
+	char *msg;
 	int priority;
 
 	if(!chat->muc) {
@@ -637,6 +638,7 @@
 	full_jid = g_strdup_printf("%s@%s/%s", chat->room, chat->server, nick);
 	xmlnode_set_attrib(presence, "to", full_jid);
 	g_free(full_jid);
+	g_free(msg);
 
 	jabber_send(chat->js, presence);
 	xmlnode_free(presence);

mercurial