From eb16d9c6fb04020a5dae4d5f4e3d8379cad67ec2 Mon Sep 17 00:00:00 2001 From: Anna Schumaker Date: Wed, 28 Sep 2016 16:53:20 -0400 Subject: [PATCH] tests/core/tags/album: Deinitialize genre after testing Otherwise valgrind will report that we are leaking memory. Additionally, only initialize the idle queue for sync idle tasks until album artwork needs it. Signed-off-by: Anna Schumaker --- tests/core/tags/album.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/core/tags/album.c b/tests/core/tags/album.c index d43e87e8..9745b66a 100644 --- a/tests/core/tags/album.c +++ b/tests/core/tags/album.c @@ -182,7 +182,7 @@ int main(int argc, char **argv) { int ret; - idle_init(); + idle_init_sync(); artist_db_init(); genre_db_init(); album_db_init(); @@ -196,6 +196,7 @@ int main(int argc, char **argv) ret = g_test_run(); album_db_deinit(); + genre_db_deinit(); artist_db_deinit(); idle_deinit(); return ret;