changeset 21681:261fd722db1f

Fix for a glib assertion
author Richard Nelson <wabz@pidgin.im>
date Wed, 28 Nov 2007 03:52:27 +0000
parents 65f2a29617a2
children 0bf7b100a75f
files finch/libgnt/gntwindow.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/finch/libgnt/gntwindow.c	Wed Nov 28 03:51:18 2007 +0000
+++ b/finch/libgnt/gntwindow.c	Wed Nov 28 03:52:27 2007 +0000
@@ -62,7 +62,8 @@
 	if (window->menu)
 		gnt_widget_destroy(GNT_WIDGET(window->menu));
 	if (window->priv) {
-		g_hash_table_destroy(window->priv->accels);
+		if (window->priv->accels)
+			g_hash_table_destroy(window->priv->accels);
 		g_free(window->priv);
 	}
 	org_destroy(widget);