From: Thijs Vermeir Date: Thu, 29 Jan 2009 13:08:56 +0000 (+0100) Subject: Only unref the peer when there is one. X-Git-Tag: 1.19.3~509^2~10765 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1c3fb9925274a4b48b6173b054d7cf1511302ea5;p=platform%2Fupstream%2Fgstreamer.git Only unref the peer when there is one. --- diff --git a/gst/videocrop/gstaspectratiocrop.c b/gst/videocrop/gstaspectratiocrop.c index cd59323..6d0ee44 100644 --- a/gst/videocrop/gstaspectratiocrop.c +++ b/gst/videocrop/gstaspectratiocrop.c @@ -392,10 +392,10 @@ gst_aspect_ratio_crop_get_caps (GstPad * pad) return_caps = gst_aspect_ratio_crop_transform_caps (aspect_ratio_crop, peer_caps); gst_caps_unref (peer_caps); + gst_object_unref (peer); } g_mutex_unlock (aspect_ratio_crop->crop_lock); - gst_object_unref (peer); gst_object_unref (aspect_ratio_crop); return return_caps;