diff finch/libgnt/gntws.c @ 22763:bec28e60aff6

Fix a possible crash when creating a new workspace.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Mon, 28 Apr 2008 22:34:39 +0000
parents 9187d331aebe
children a18f421696dc
line wrap: on
line diff
--- a/finch/libgnt/gntws.c	Mon Apr 28 22:07:06 2008 +0000
+++ b/finch/libgnt/gntws.c	Mon Apr 28 22:34:39 2008 +0000
@@ -13,7 +13,8 @@
 	GntNode *node = g_hash_table_lookup(nodes, widget);
 	if (GNT_IS_WINDOW(widget))
 		gnt_window_workspace_hiding(GNT_WINDOW(widget));
-	hide_panel(node->panel);
+	if (node)
+		hide_panel(node->panel);
 }
 
 static void