replay: Remove some leak and a FIXME

Threads are joined by spice_server_destroy, just need to release
last resources.

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Snir Sheriber <ssheribe@redhat.com>
This commit is contained in:
Frediano Ziglio 2019-07-22 21:07:49 +01:00
parent 3af64b61dc
commit 3ebc6d4a43

View File

@ -481,9 +481,8 @@ int main(int argc, char **argv)
free_queue(cursor_queue);
end_replay();
/* FIXME: there should be a way to join server threads before:
* g_main_loop_unref(loop);
*/
g_main_loop_unref(loop);
basic_event_loop_destroy();
return 0;
}