Commit 6f460fd3 authored by Youness Alaoui's avatar Youness Alaoui

correctly unref the source for an io socket when attaching to the mainloop

parent b244a4c4
......@@ -1741,6 +1741,7 @@ static void priv_detach_stream_component (Stream *stream, Component *component)
GSource *source = i->data;
nice_debug ("Detach source %p (stream %u).", source, stream->id);
g_source_destroy (source);
g_source_unref (source);
}
g_slist_free (component->gsources);
......
......@@ -95,6 +95,7 @@ component_free (Component *cmp)
for (i = cmp->gsources; i; i = i->next) {
GSource *source = i->data;
g_source_destroy (source);
g_source_unref (source);
}
for (i = cmp->incoming_checks; i; i = i->next) {
......
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