mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 03:00:35 +00:00
opencv: don't unref NULL caps in finalize
Fixes gst-inspect-1.0 -a and generic states unit test.
This commit is contained in:
parent
4bed01aff9
commit
2d29f22338
1 changed files with 2 additions and 2 deletions
|
@ -461,11 +461,11 @@ static void
|
|||
gst_disparity_finalize (GObject * object)
|
||||
{
|
||||
GstDisparity *filter;
|
||||
|
||||
filter = GST_DISPARITY (object);
|
||||
gst_disparity_release_all_pointers (filter);
|
||||
|
||||
gst_caps_unref (filter->caps);
|
||||
filter->caps = NULL;
|
||||
gst_caps_replace (&filter->caps, NULL);
|
||||
|
||||
g_cond_clear (&filter->cond);
|
||||
g_mutex_clear (&filter->lock);
|
||||
|
|
Loading…
Reference in a new issue