opencv: don't unref NULL caps in finalize

Fixes gst-inspect-1.0 -a and generic states unit test.
This commit is contained in:
Tim-Philipp Müller 2013-09-29 23:43:23 +01:00
parent 4bed01aff9
commit 2d29f22338

View file

@ -461,11 +461,11 @@ static void
gst_disparity_finalize (GObject * object) gst_disparity_finalize (GObject * object)
{ {
GstDisparity *filter; GstDisparity *filter;
filter = GST_DISPARITY (object); filter = GST_DISPARITY (object);
gst_disparity_release_all_pointers (filter); gst_disparity_release_all_pointers (filter);
gst_caps_unref (filter->caps); gst_caps_replace (&filter->caps, NULL);
filter->caps = NULL;
g_cond_clear (&filter->cond); g_cond_clear (&filter->cond);
g_mutex_clear (&filter->lock); g_mutex_clear (&filter->lock);