From: Wim Taymans Date: Mon, 10 Oct 2005 15:17:35 +0000 (+0000) Subject: gst/gstelement.c: And free the GStaticRecMutex too X-Git-Tag: RELEASE-0_9_4~160 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9e17ca91dd6c8e7e26dd7510f5e8db152c463164;p=platform%2Fupstream%2Fgstreamer.git gst/gstelement.c: And free the GStaticRecMutex too Original commit message from CVS: * gst/gstelement.c: (gst_element_finalize): And free the GStaticRecMutex too --- diff --git a/ChangeLog b/ChangeLog index b31b984..f9760ab 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-10-10 Wim Taymans + + * gst/gstelement.c: (gst_element_finalize): + And free the GStaticRecMutex too + 2005-10-10 Andy Wingo * gst/gstelement.c (gst_element_init, gst_element_finalize): diff --git a/gst/gstelement.c b/gst/gstelement.c index 11257c5..ae2120f 100644 --- a/gst/gstelement.c +++ b/gst/gstelement.c @@ -2215,6 +2215,8 @@ gst_element_finalize (GObject * object) element->state_cond = NULL; GST_STATE_UNLOCK (element); g_static_rec_mutex_free (element->state_lock); + g_free (element->state_lock); + element->state_lock = NULL; GST_CAT_INFO_OBJECT (GST_CAT_REFCOUNTING, element, "finalize parent");