qulogic/libgnt

Prevent occasional crashes on quit.
next.minor
2007-10-20, Sadrul Habib Chowdhury
bd9935b376e6
Parents be71d47eb45c
Children b2b27f700dba
Prevent occasional crashes on quit.
  • +4 -1
    gntstyle.c
  • --- a/gntstyle.c Sat Oct 20 05:48:32 2007 +0000
    +++ b/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
    }