validate: unref last_caps when destroying pad monitor

Reviewers: thiblahute

Reviewed By: thiblahute

Differential Revision: http://phabricator.freedesktop.org/D150
This commit is contained in:
Guillaume Desmottes 2015-05-07 11:19:57 +02:00 committed by Thibault Saunier
parent 5a5f718900
commit 0417e47e50

View 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);
}