Commit d053bd54 authored by Youness Alaoui's avatar Youness Alaoui

Destroy the keepalive retransmission timer if the component is destroyed

parent 763cd8ed
......@@ -117,6 +117,12 @@ component_free (Component *cmp)
g_list_free (cmp->turn_servers);
if (cmp->selected_pair.keepalive.tick_source != NULL) {
g_source_destroy (cmp->selected_pair.keepalive.tick_source);
g_source_unref (cmp->selected_pair.keepalive.tick_source);
cmp->selected_pair.keepalive.tick_source = NULL;
g_slice_free (Component, cmp);
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