From 4c5ba39bfedb4991b5d734dabafa9f2bdd8a9f56 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Tue, 7 Feb 2017 12:28:02 +0100 Subject: [PATCH] validate: pad-monitor: fix caps leaks These caps were not released when disposing the pad monitor. https://bugzilla.gnome.org/show_bug.cgi?id=778279 --- validate/gst/validate/gst-validate-pad-monitor.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/validate/gst/validate/gst-validate-pad-monitor.c b/validate/gst/validate/gst-validate-pad-monitor.c index ecf5cba1be..7a5e63fee4 100644 --- a/validate/gst/validate/gst-validate-pad-monitor.c +++ b/validate/gst/validate/gst-validate-pad-monitor.c @@ -860,6 +860,8 @@ gst_validate_pad_monitor_dispose (GObject * object) 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); + gst_caps_replace (&monitor->last_query_res, NULL); + gst_caps_replace (&monitor->last_query_filter, NULL); G_OBJECT_CLASS (parent_class)->dispose (object); }