gst/gst.c: let's make valgrind happy...
authorEdward Hervey <bilboed@bilboed.com>
Mon, 10 Jul 2006 09:42:20 +0000 (09:42 +0000)
committerEdward Hervey <bilboed@bilboed.com>
Mon, 10 Jul 2006 09:42:20 +0000 (09:42 +0000)
Original commit message from CVS:
* gst/gst.c: (ensure_current_registry_forking):
let's make valgrind happy...

ChangeLog
gst/gst.c

index 9a30b7f..b7f3957 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-07-10  Edward Hervey  <edward@fluendo.com>
+
+       * gst/gst.c: (ensure_current_registry_forking):
+       let's make valgrind happy...
+
 2006-07-09  Wim Taymans  <wim@fluendo.com>
 
        * gst/gstelement.c: (activate_pads),
index 7ae2343..7f3f544 100644 (file)
--- a/gst/gst.c
+++ b/gst/gst.c
@@ -672,6 +672,10 @@ ensure_current_registry_forking (GstRegistry * default_registry,
     /* need to use _exit, so that any exit handlers registered don't
      * bring down the main program */
     GST_DEBUG ("child exiting: %s", (res) ? "SUCCESS" : "FAILURE");
+
+    /* make valgrind happy (yes, you can call it insane) */
+    g_free ((char *) registry_file);
+
     _exit ((res) ? EXIT_SUCCESS : EXIT_FAILURE);
   } else {
     /* parent */