From 473c2e6446948f4c7c5d0f551a83bfbf479a6ae1 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Wed, 24 Dec 2003 00:02:17 +0000 Subject: [PATCH] Fix bug in _gst_caps_value_copy() that could cause GValue corruption Original commit message from CVS: Fix bug in _gst_caps_value_copy() that could cause GValue corruption --- gst/gstcaps.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gst/gstcaps.c b/gst/gstcaps.c index 66e0eb9..5d29673 100644 --- a/gst/gstcaps.c +++ b/gst/gstcaps.c @@ -698,6 +698,8 @@ static void _gst_caps_value_copy (const GValue *src, GValue *dest) { if (dest->data[0].v_pointer) { gst_caps_free (dest->data[0].v_pointer); + } + if (src->data[0].v_pointer) { dest->data[0].v_pointer = gst_caps_copy (src->data[0].v_pointer); } else { dest->data[0].v_pointer = NULL; -- 2.7.4