fix a leak in controller

Original commit message from CVS:
fix a leak in controller
This commit is contained in:
Thomas Vander Stichele 2005-09-20 20:19:52 +00:00
parent bd2986edb7
commit 77d2059fbc
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2005-09-20 Thomas Vander Stichele <thomas at apestaart dot org>
* libs/gst/controller/gstcontroller.c: (gst_controller_new_valist):
fix a leak
2005-09-20 Tim-Philipp Müller <tim at centricular dot net> 2005-09-20 Tim-Philipp Müller <tim at centricular dot net>
* gst/elements/gstfilesink.c: (gst_file_sink_init): * gst/elements/gstfilesink.c: (gst_file_sink_init):

View file

@ -430,7 +430,6 @@ gst_controller_new_valist (GObject * object, va_list var_args)
// if we don't have a controller object yet, now is the time to create one // if we don't have a controller object yet, now is the time to create one
if (!self) { if (!self) {
self = g_object_new (GST_TYPE_CONTROLLER, NULL); self = g_object_new (GST_TYPE_CONTROLLER, NULL);
self->lock = g_mutex_new ();
self->object = object; self->object = object;
// store the controller // store the controller
g_object_set_qdata (object, controller_key, self); g_object_set_qdata (object, controller_key, self);