From 2e0a45d7dfaaeebb85944c3d8f028fe4e376c262 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Mon, 26 Nov 2018 08:10:24 -0300 Subject: [PATCH] aspectcropration: Fix potential unref of NULL pointer --- gst/videocrop/gstaspectratiocrop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/videocrop/gstaspectratiocrop.c b/gst/videocrop/gstaspectratiocrop.c index 0bd4b691f5..34028647a9 100644 --- a/gst/videocrop/gstaspectratiocrop.c +++ b/gst/videocrop/gstaspectratiocrop.c @@ -205,7 +205,7 @@ gst_aspect_ratio_crop_finalize (GObject * object) aspect_ratio_crop = GST_ASPECT_RATIO_CROP (object); 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); }