From 8f5134529653934a8dbfd6ce2f916dec86fc6d86 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 18 Sep 2012 12:14:34 +0200 Subject: [PATCH] pad: Fix refcount bug by unreffing the correct variable --- gst/gstpad.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst/gstpad.c b/gst/gstpad.c index 04c285e..a429226 100644 --- a/gst/gstpad.c +++ b/gst/gstpad.c @@ -1841,7 +1841,7 @@ gst_pad_unlink (GstPad * srcpad, GstPad * sinkpad) ACQUIRE_PARENT (srcpad, tmpparent, no_src_parent); GST_PAD_UNLINKFUNC (srcpad) (srcpad, tmpparent); - RELEASE_PARENT (parent); + RELEASE_PARENT (tmpparent); } no_src_parent: if (GST_PAD_UNLINKFUNC (sinkpad)) { @@ -1850,7 +1850,7 @@ no_src_parent: ACQUIRE_PARENT (sinkpad, tmpparent, no_sink_parent); GST_PAD_UNLINKFUNC (sinkpad) (sinkpad, tmpparent); - RELEASE_PARENT (parent); + RELEASE_PARENT (tmpparent); } no_sink_parent: -- 2.7.4