fragment: fix caps and buffer leaks in get_property

This commit is contained in:
Vincent Penquerc'h 2015-01-15 13:16:07 +00:00
parent d1e8b88eaa
commit 59bd35aed1

View file

@ -95,11 +95,11 @@ gst_fragment_get_property (GObject * object,
break;
case PROP_BUFFER:
g_value_set_boxed (value, gst_fragment_get_buffer (fragment));
g_value_take_boxed (value, gst_fragment_get_buffer (fragment));
break;
case PROP_CAPS:
g_value_set_boxed (value, gst_fragment_get_caps (fragment));
g_value_take_boxed (value, gst_fragment_get_caps (fragment));
break;
default: