[spice-server,2/2] replay: Remove some leak and a FIXME

Submitted by Frediano Ziglio on July 23, 2019, 8:22 a.m.

Details

Message ID 20190723082230.10381-2-fziglio@redhat.com
State Accepted
Commit 3ebc6d4a435d18121470d730cee8f6aa72ffc018
Headers show
Series "Series without cover letter" ( rev: 5 4 3 2 1 ) in Spice

Not browsing as part of any series.

Commit Message

Frediano Ziglio July 23, 2019, 8:22 a.m.
Threads are joined by spice_server_destroy, just need to release
last resources.

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

Patch hide | download patch | download mbox

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;
 }