changeset 21255:430fd445a053

Prevent occasional crashes on quit.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Sat, 20 Oct 2007 05:50:48 +0000
parents f35b480841dc
children e8b0f224483f
files finch/libgnt/gntstyle.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/finch/libgnt/gntstyle.c	Sat Oct 20 05:48:32 2007 +0000
+++ b/finch/libgnt/gntstyle.c	Sat Oct 20 05:50:48 2007 +0000
@@ -413,11 +413,14 @@
 void gnt_uninit_styles()
 {
 	int i;
-	for (i = 0; i < GNT_STYLES; i++)
+	for (i = 0; i < GNT_STYLES; i++) {
 		g_free(str_styles[i]);
+		str_styles[i] = NULL;
+	}
 
 #if GLIB_CHECK_VERSION(2,6,0)
 	g_key_file_free(gkfile);
+	gkfile = NULL;
 #endif
 }