Commit 26acf7f1 authored by Benjamin Berg's avatar Benjamin Berg
Browse files

meta: Fix spurious free in meta provider

The metaprovider was unref'ing all providers that match the newly added
sink. This was simply a wrong initialization of the pointer array.
parent ae5264b1
......@@ -74,7 +74,7 @@ provider_sink_added_cb (ScreencastMetaProvider *meta_provider, ScreencastSink *s
g_object_get (sink, "matches", &sink_matches, NULL);
g_assert (sink_matches != NULL);
meta_sinks = g_ptr_array_new_with_free_func (g_object_unref);
meta_sinks = g_ptr_array_new ();
for (gint i = 0; i < sink_matches->len; i++)
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