changeset 23021:ed346fedec30

applied changes from 9ebef7dc91fd3f43f016ceeee02e0a15e2008868 through 90044aa70ff85325bb4dd1102410046531721109
author Daniel Atallah <daniel.atallah@gmail.com>
date Thu, 19 Jun 2008 03:07:18 +0000
parents 56c9176d21e4
children 8a1798bcddc6
files pidgin/gtkimhtmltoolbar.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkimhtmltoolbar.c	Thu Jun 19 03:06:03 2008 +0000
+++ b/pidgin/gtkimhtmltoolbar.c	Thu Jun 19 03:07:18 2008 +0000
@@ -1004,7 +1004,10 @@
 	}
 
 	destroy_toolbar_font(NULL, NULL, toolbar);
-	destroy_smiley_dialog(toolbar);
+	if (toolbar->smiley_dialog != NULL) {
+		g_signal_handlers_disconnect_by_func(G_OBJECT(toolbar->smiley_dialog), close_smiley_dialog, toolbar);
+		destroy_smiley_dialog(toolbar);
+	}
 	destroy_toolbar_bgcolor(NULL, NULL, toolbar);
 	destroy_toolbar_fgcolor(NULL, NULL, toolbar);
 	close_link_dialog(toolbar);