Mercurial > pidgin
diff finch/libgnt/gntstyle.c @ 21255:430fd445a053
Prevent occasional crashes on quit.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Sat, 20 Oct 2007 05:50:48 +0000 |
parents | b65f1bff6412 |
children | 3ed9b027479d |
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 }