From 8cc1b399197bb22e43cdbbfadcec26873211df37 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Thu, 18 May 2017 15:21:41 +0200 Subject: [PATCH] validate: monitor: Unref our weak reference to the pipeline --- validate/gst/validate/gst-validate-monitor.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/validate/gst/validate/gst-validate-monitor.c b/validate/gst/validate/gst-validate-monitor.c index cbb6ab3310..9a19674749 100644 --- a/validate/gst/validate/gst-validate-monitor.c +++ b/validate/gst/validate/gst-validate-monitor.c @@ -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);