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 <Anna@NoWheyCreamery.com>
This commit is contained in:
parent
1d7cfa0e6d
commit
eb16d9c6fb
|
@ -182,7 +182,7 @@ int main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
idle_init();
|
idle_init_sync();
|
||||||
artist_db_init();
|
artist_db_init();
|
||||||
genre_db_init();
|
genre_db_init();
|
||||||
album_db_init();
|
album_db_init();
|
||||||
|
@ -196,6 +196,7 @@ int main(int argc, char **argv)
|
||||||
ret = g_test_run();
|
ret = g_test_run();
|
||||||
|
|
||||||
album_db_deinit();
|
album_db_deinit();
|
||||||
|
genre_db_deinit();
|
||||||
artist_db_deinit();
|
artist_db_deinit();
|
||||||
idle_deinit();
|
idle_deinit();
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Reference in New Issue