Commit 36902c21 authored by Edward Hervey's avatar Edward Hervey Committed by Jonathan Matthew
Browse files

gst: Take a reference on objects returned by iterators

parent fdec6d0f
......@@ -135,7 +135,7 @@ rb_player_gst_find_element_with_property (GstElement *element, const char *prope
(GCompareFunc) find_property_element,
&r,
(gpointer) property)) {
result = g_value_get_object (&r);
result = g_value_dup_object (&r);
g_value_unset (&r);
}
gst_iterator_free (iter);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment