diff --git a/ChangeLog b/ChangeLog index 26fd61051..382365f76 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-11-07 Matthias Clasen + + * glib/gmain.c (g_main_context_unref): Don't leak the + condvar. (#479724, Areg Beketovski) + 2007-11-07 Matthias Clasen * glib/glib.symbols: diff --git a/glib/gmain.c b/glib/gmain.c index 14fcc3f5d..8b97ba9a8 100644 --- a/glib/gmain.c +++ b/glib/gmain.c @@ -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);