Don't leak the condvar. (#479724, Areg Beketovski)
authorMatthias Clasen <mclasen@redhat.com>
Thu, 8 Nov 2007 03:53:41 +0000 (03:53 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Thu, 8 Nov 2007 03:53:41 +0000 (03:53 +0000)
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

ChangeLog
glib/gmain.c

index 26fd610..382365f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 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:
        * glib/gmarkup.[hc] (g_markup_parse_context_get_element_stack): 
        New function, to get the stack of open elements.  (#452887,
index 14fcc3f..8b97ba9 100644 (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);