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 26fd61051ae1eeda605485af19cb2227ce495cfa..382365f768c62086edd5e8604a00ff688af40bd9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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:
index 14fcc3f5d9f4484ceafa8450ccbfe1d82ed3be81..8b97ba9a8f953e00cf9a8e2327b68798a94f6fb1 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);