From 0417e47e50863134e6ccfcda41f9434a2f764ff7 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Thu, 7 May 2015 11:19:57 +0200 Subject: [PATCH] validate: unref last_caps when destroying pad monitor Reviewers: thiblahute Reviewed By: thiblahute Differential Revision: http://phabricator.freedesktop.org/D150 --- validate/gst/validate/gst-validate-pad-monitor.c | 1 + 1 file changed, 1 insertion(+) diff --git a/validate/gst/validate/gst-validate-pad-monitor.c b/validate/gst/validate/gst-validate-pad-monitor.c index ad6ce35e70..63d30a8a35 100644 --- a/validate/gst/validate/gst-validate-pad-monitor.c +++ b/validate/gst/validate/gst-validate-pad-monitor.c @@ -858,6 +858,7 @@ gst_validate_pad_monitor_dispose (GObject * object) g_ptr_array_unref (monitor->serialized_events); g_list_free_full (monitor->expired_events, (GDestroyNotify) gst_event_unref); g_list_free_full (monitor->all_bufs, (GDestroyNotify) gst_buffer_unref); + gst_caps_replace (&monitor->last_caps, NULL); G_OBJECT_CLASS (parent_class)->dispose (object); }