mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-25 15:36:42 +00:00
aspectcropration: Fix potential unref of NULL pointer
This commit is contained in:
parent
eb2b58cc0b
commit
2e0a45d7df
1 changed files with 1 additions and 1 deletions
|
@ -205,7 +205,7 @@ gst_aspect_ratio_crop_finalize (GObject * object)
|
||||||
aspect_ratio_crop = GST_ASPECT_RATIO_CROP (object);
|
aspect_ratio_crop = GST_ASPECT_RATIO_CROP (object);
|
||||||
|
|
||||||
g_mutex_clear (&aspect_ratio_crop->crop_lock);
|
g_mutex_clear (&aspect_ratio_crop->crop_lock);
|
||||||
gst_caps_unref (aspect_ratio_crop->renegotiation_caps);
|
gst_clear_caps (&aspect_ratio_crop->renegotiation_caps);
|
||||||
|
|
||||||
G_OBJECT_CLASS (parent_class)->finalize (object);
|
G_OBJECT_CLASS (parent_class)->finalize (object);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue