Don't leak the condvar. (#479724, Areg Beketovski)

2007-11-07  Matthias Clasen <mclasen@redhat.com>

        * glib/gmain.c (g_main_context_unref): Don't leak the
        condvar.  (#479724, Areg Beketovski)


svn path=/trunk/; revision=5818
This commit is contained in:
Matthias Clasen 2007-11-08 03:53:41 +00:00 committed by Matthias Clasen
parent 9757456e23
commit 1c93d867fc
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2007-11-07 Matthias Clasen <mclasen@redhat.com>
* glib/gmain.c (g_main_context_unref): Don't leak the
condvar. (#479724, Areg Beketovski)
2007-11-07 Matthias Clasen <mclasen@redhat.com>
* glib/glib.symbols:

View File

@ -665,6 +665,9 @@ g_main_context_unref (GMainContext *context)
else
main_contexts_without_pipe = g_slist_remove (main_contexts_without_pipe,
context);
if (context->cond != NULL)
g_cond_free (context->cond);
#endif
g_free (context);