# HG changeset patch # User Mark Doliner # Date 1104805945 0 # Node ID 01558a7faa01d1473abd942e5cb7d6e1d199308a # Parent eaa9552a5e0f99d502091728dad7913a60c09bb5 [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 diff -r eaa9552a5e0f -r 01558a7faa01 src/gtkconv.c --- 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