validate: unref last_caps when destroying pad monitor
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Thu, 7 May 2015 09:19:57 +0000 (11:19 +0200)
committerThibault Saunier <tsaunier@gnome.org>
Thu, 7 May 2015 09:19:57 +0000 (11:19 +0200)
Reviewers: thiblahute

Reviewed By: thiblahute

Differential Revision: http://phabricator.freedesktop.org/D150

validate/gst/validate/gst-validate-pad-monitor.c

index ad6ce35..63d30a8 100644 (file)
@@ -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);
 }