validate: monitor: Unref our weak reference to the pipeline
authorThibault Saunier <thibault.saunier@osg.samsung.com>
Thu, 18 May 2017 13:21:41 +0000 (15:21 +0200)
committerThibault Saunier <thibault.saunier@osg.samsung.com>
Wed, 31 May 2017 18:53:05 +0000 (14:53 -0400)
validate/gst/validate/gst-validate-monitor.c

index cbb6ab3..9a19674 100644 (file)
@@ -129,6 +129,10 @@ gst_validate_monitor_dispose (GObject * object)
     g_object_weak_unref (G_OBJECT (monitor->target),
         (GWeakNotify) _target_freed_cb, monitor);
 
+  if (monitor->pipeline)
+    g_object_weak_unref (G_OBJECT (monitor->pipeline),
+        (GWeakNotify) _pipeline_freed_cb, monitor);
+
   if (monitor->media_descriptor)
     gst_object_unref (monitor->media_descriptor);