changeset 10471:01558a7faa01

[gaim-migrate @ 11756] Same bufix I just committed to oldstatus. I'm not real happy about this fix. Seems like conversations should always have account and name set to non-NULL. And convs should be destroyed if an account is deleted. Someone should look into that and write a patch, if it's a good idea. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Tue, 04 Jan 2005 02:32:25 +0000
parents eaa9552a5e0f
children 133a33699e19
files src/gtkconv.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkconv.c	Tue Jan 04 01:58:36 2005 +0000
+++ b/src/gtkconv.c	Tue Jan 04 02:32:25 2005 +0000
@@ -2793,7 +2793,7 @@
 	} else {
 		/* Account is offline */
 		/* Or it's a chat that we've left. */
-		
+
 		/* Then deal with menu items */
 		gtk_widget_set_sensitive(gtkwin->menu.view_log, TRUE);
 		gtk_widget_set_sensitive(gtkwin->menu.send_file, FALSE);
@@ -2822,7 +2822,8 @@
 		window_icon = get_tab_icon(conv, FALSE);
 	}
 	gtk_window_set_icon(GTK_WINDOW(gtkwin->window), window_icon);
-	g_object_unref(G_OBJECT(window_icon));
+	if (window_icon != NULL)
+		g_object_unref(G_OBJECT(window_icon));
 }
 
 static void