comparison 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
comparison
equal deleted inserted replaced
21254:f35b480841dc 21255:430fd445a053
411 } 411 }
412 412
413 void gnt_uninit_styles() 413 void gnt_uninit_styles()
414 { 414 {
415 int i; 415 int i;
416 for (i = 0; i < GNT_STYLES; i++) 416 for (i = 0; i < GNT_STYLES; i++) {
417 g_free(str_styles[i]); 417 g_free(str_styles[i]);
418 str_styles[i] = NULL;
419 }
418 420
419 #if GLIB_CHECK_VERSION(2,6,0) 421 #if GLIB_CHECK_VERSION(2,6,0)
420 g_key_file_free(gkfile); 422 g_key_file_free(gkfile);
421 #endif 423 gkfile = NULL;
422 } 424 #endif
423 425 }
426