Fix crash on studio stop

capture/playback clients were freed twice
This commit is contained in:
Nedko Arnaudov 2009-09-20 19:08:37 +03:00
parent 969873de35
commit 20a9f12362
1 changed files with 8 additions and 0 deletions

View File

@ -243,6 +243,14 @@ static void port_disappeared(void * context, uint64_t client_id, uint64_t port_i
if (ladish_graph_is_client_empty(dispatcher_ptr->studio_graph, client))
{
ladish_graph_remove_client(dispatcher_ptr->studio_graph, client, false);
if (client == dispatcher_ptr->system_capture_client)
{
dispatcher_ptr->system_capture_client = NULL;
}
if (client == dispatcher_ptr->system_playback_client)
{
dispatcher_ptr->system_playback_client = NULL;
}
}
}
}