[Spice-devel] [PATCH spice-server 2/2] replay: Remove some leak and a FIXME

Frediano Ziglio fziglio at redhat.com
Tue Jul 23 08:22:28 UTC 2019


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

Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
 server/tests/replay.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/server/tests/replay.c b/server/tests/replay.c
index 992f26d63..44f244457 100644
--- a/server/tests/replay.c
+++ b/server/tests/replay.c
@@ -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;
 }
-- 
2.20.1



More information about the Spice-devel mailing list