Commit 92343b6f authored by Guillaume Desmottes's avatar Guillaume Desmottes Committed by Sebastian Dröge
Browse files

playbin: fix suburidecodebin leak

We take a ref before removing which was never freeded.
The element is still alive anyway because the group has its own ref as

Fix a leak with the 'test_suburi_error_wrongproto' test.
parent ece70292
......@@ -3017,6 +3017,7 @@ gst_play_bin_handle_message (GstBin * bin, GstMessage * msg)
gst_object_ref (group->suburidecodebin);
gst_bin_remove (bin, group->suburidecodebin);
gst_element_set_locked_state (group->suburidecodebin, FALSE);
gst_object_unref (group->suburidecodebin);
g_free (group->suburi);
Supports Markdown
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