changeset 17069: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 3b01cb4147d3
children f2137f75fd10
files pidgin/gtkconv.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
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);
 }