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
This commit is contained in:
Guillaume Desmottes 2017-02-07 12:28:02 +01:00 committed by Thibault Saunier
parent addd76fc85
commit 4c5ba39bfe

View file

@ -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->expired_events, (GDestroyNotify) gst_event_unref);
g_list_free_full (monitor->all_bufs, (GDestroyNotify) gst_buffer_unref); g_list_free_full (monitor->all_bufs, (GDestroyNotify) gst_buffer_unref);
gst_caps_replace (&monitor->last_caps, NULL); 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); G_OBJECT_CLASS (parent_class)->dispose (object);
} }