Commit 6b0063aa authored by Youness Alaoui's avatar Youness Alaoui Committed by Sebastian Dröge
Browse files

appsrc: Fix memory leak with callback notify not being called in dispose
parent 69552ed8
......@@ -544,10 +544,18 @@ gst_app_src_dispose (GObject * obj)
GstAppSrc *appsrc = GST_APP_SRC_CAST (obj);
GstAppSrcPrivate *priv = appsrc->priv;
if (priv->caps) {
gst_caps_unref (priv->caps);
priv->caps = NULL;
if (priv->notify) {
priv->notify (priv->user_data);
priv->user_data = NULL;
priv->notify = NULL;
gst_app_src_flush_queued (appsrc);
G_OBJECT_CLASS (parent_class)->dispose (obj);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment