gst/gst.c: let's make valgrind happy...

Original commit message from CVS:
* gst/gst.c: (ensure_current_registry_forking):
let's make valgrind happy...
This commit is contained in:
Edward Hervey 2006-07-10 09:42:20 +00:00
parent 8b23eed267
commit a33eea0c67
2 changed files with 9 additions and 0 deletions

View file

@ -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> 2006-07-09 Wim Taymans <wim@fluendo.com>
* gst/gstelement.c: (activate_pads), * gst/gstelement.c: (activate_pads),

View file

@ -672,6 +672,10 @@ ensure_current_registry_forking (GstRegistry * default_registry,
/* need to use _exit, so that any exit handlers registered don't /* need to use _exit, so that any exit handlers registered don't
* bring down the main program */ * bring down the main program */
GST_DEBUG ("child exiting: %s", (res) ? "SUCCESS" : "FAILURE"); 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); _exit ((res) ? EXIT_SUCCESS : EXIT_FAILURE);
} else { } else {
/* parent */ /* parent */