changeset 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 20053e2484f8
children 5b8dbe4b9898
files finch/libgnt/gntws.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
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