diff --git a/gst/playback/gstplaysink.c b/gst/playback/gstplaysink.c index bd60120a8e..b772ba32aa 100644 --- a/gst/playback/gstplaysink.c +++ b/gst/playback/gstplaysink.c @@ -1189,9 +1189,10 @@ gst_play_sink_find_property (GstPlaySink * playsink, GstElement * obj, found = gst_iterator_find_custom (it, (GCompareFunc) find_property, &item, &helper); gst_iterator_free (it); - if (found) + if (found) { result = g_value_dup_object (&item); - g_value_unset (&item); + g_value_unset (&item); + } } else { if (element_has_property (obj, name, expected_type)) { result = obj;