From a4aa00288b790bf0967e1deb9d1ff02105314857 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 14 Jan 2003 18:45:18 +0000 Subject: [PATCH] When we unref a caps, don't unref the chained caps Original commit message from CVS: When we unref a caps, don't unref the chained caps --- common | 2 +- gst/gstcaps.c | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/common b/common index 2a013c0..5b6a58f 160000 --- a/common +++ b/common @@ -1 +1 @@ -Subproject commit 2a013c06fe9bf1379966cd12e6bf8c30915c5f12 +Subproject commit 5b6a58f419c3d6fdd4abbe9943cd17a4fd2addcc diff --git a/gst/gstcaps.c b/gst/gstcaps.c index a40db7e..0ac7baf 100644 --- a/gst/gstcaps.c +++ b/gst/gstcaps.c @@ -217,7 +217,6 @@ GstCaps* gst_caps_unref (GstCaps *caps) { gboolean zero; - GstCaps **next; if (caps == NULL) return NULL; @@ -226,10 +225,6 @@ gst_caps_unref (GstCaps *caps) caps->refcount--; zero = (caps->refcount == 0); - next = &caps->next; - - if (*next) - *next = gst_caps_unref (*next); if (zero) { gst_caps_destroy (caps); -- 2.7.4