mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-20 08:41:07 +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)
|
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);
|
||||||
|
|
Loading…
Reference in a new issue