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
This commit is contained in:
David Schleef 2003-12-24 00:02:17 +00:00
parent fa4316c123
commit 473c2e6446

View file

@ -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;