summaryrefslogtreecommitdiff
path: root/gst/videocrop
diff options
context:
space:
mode:
authorThibault Saunier <tsaunier@igalia.com>2018-11-26 08:10:24 -0300
committerThibault Saunier <tsaunier@igalia.com>2018-11-26 08:11:57 -0300
commit2e0a45d7dfaaeebb85944c3d8f028fe4e376c262 (patch)
tree2447729262f69b064e2f2cd11a888cfe3ab8f39d /gst/videocrop
parenteb2b58cc0bd779ab035c85fdab6074e63dbe3852 (diff)
downloadgstreamer-plugins-good-2e0a45d7dfaaeebb85944c3d8f028fe4e376c262.tar.gz
aspectcropration: Fix potential unref of NULL pointer
Diffstat (limited to 'gst/videocrop')
-rw-r--r--gst/videocrop/gstaspectratiocrop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/videocrop/gstaspectratiocrop.c b/gst/videocrop/gstaspectratiocrop.c
index 0bd4b691f..34028647a 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);
}