changeset 2411:c69b1d1d47a3

Set window to NULL after it's destroyed.
author William Pitcock <nenolod@atheme.org>
date Mon, 18 Feb 2008 04:41:02 -0600
parents d0c5974cad17
children 49c27d619ffc
files src/projectm-1.0/main.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/projectm-1.0/main.c	Mon Feb 18 04:26:18 2008 -0600
+++ b/src/projectm-1.0/main.c	Mon Feb 18 04:41:02 2008 -0600
@@ -89,7 +89,10 @@
 void
 projectM_cleanup(void)
 {
+    g_return_if_fail(window != NULL);
+
     gtk_widget_destroy(window);
+    window = NULL;
 }
 
 void