diff pidgin/gtkconv.c @ 17082:4876375de307

Plug a leak when the flags for a user in a chat changes.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Sun, 13 May 2007 08:54:50 +0000
parents 413c957e7c44
children 79f6b097a0a6 9f5c9df30287
line wrap: on
line diff
--- a/pidgin/gtkconv.c	Sun May 13 08:34:26 2007 +0000
+++ b/pidgin/gtkconv.c	Sun May 13 08:54:50 2007 +0000
@@ -5556,9 +5556,9 @@
 
 	flags = purple_conv_chat_user_get_flags(chat, user);
 
-	cbuddy = purple_conv_chat_cb_new(user, alias, flags);
-
-	add_chat_buddy_common(conv, cbuddy, NULL);
+	cbuddy = purple_conv_chat_cb_find(chat, user);
+	if (cbuddy)
+		add_chat_buddy_common(conv, cbuddy, NULL);
 	g_free(alias);
 }