# HG changeset patch # User Sadrul Habib Chowdhury # Date 1192859448 0 # Node ID 430fd445a053b6ef456cd073ae0dd6ac222bf5da # Parent f35b480841dcad2828515dd06c72cb9f6b10779c Prevent occasional crashes on quit. diff -r f35b480841dc -r 430fd445a053 finch/libgnt/gntstyle.c --- 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 }