im.pidgin.pidgin.next.minor: 6b41377e2b7f1084d5d3115aed3cd16fe876128b

sadrul at pidgin.im sadrul at pidgin.im
Sat Oct 20 01:50:48 EDT 2007


-----------------------------------------------------------------
Revision: 6b41377e2b7f1084d5d3115aed3cd16fe876128b
Ancestor: ccd48265ef2c5dc42c84ce20e0c04465783345d5
Author: sadrul at pidgin.im
Date: 2007-10-20T05:50:48
Branch: im.pidgin.pidgin.next.minor

Modified files:
        finch/libgnt/gntstyle.c

ChangeLog: 

Prevent occasional crashes on quit.

-------------- next part --------------
============================================================
--- finch/libgnt/gntstyle.c	1f3974f6ba60892f3bdec36d01f4e1ebc25b8fac
+++ finch/libgnt/gntstyle.c	fb571513e427095d908a9872fe1f4a7a851a1530
@@ -413,11 +413,14 @@ void gnt_uninit_styles()
 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
 }
 


More information about the Commits mailing list