[grilo-plugins] tests: Do not leak missing keys in spotify
- From: Victor Toso de Carvalho <victortoso src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo-plugins] tests: Do not leak missing keys in spotify
- Date: Thu, 2 Mar 2017 12:27:34 +0000 (UTC)
commit 85ac986410cd54d8985c943b5c94aa80579b0e66
Author: Victor Toso <me victortoso com>
Date: Wed Feb 22 23:02:24 2017 +0100
tests: Do not leak missing keys in spotify
24 bytes in 1 blocks are definitely lost in loss record 1,235 of 3,381
at 0x4C2DB9D: malloc (vg_replace_malloc.c:299)
by 0x4E895B8: g_malloc (in /usr/lib64/libglib-2.0.so.0.5000.3)
by 0x4EA1B12: g_slice_alloc (in /usr/lib64/libglib-2.0.so.0.5000.3)
by 0x4E7F9E5: g_list_prepend (in /usr/lib64/libglib-2.0.so.0.5000.3)
by 0x9372497: grl_lua_factory_source_may_resolve (grl-lua-factory.c:1717)
by 0x53BBC13: grl_source_may_resolve (grl-source.c:3464)
by 0x401C00: test_may_resolve_missing_key (test_spotify_cover.c:112)
48 (24 direct, 24 indirect) bytes in 1 blocks are definitely lost in loss record 2,010 of 3,381
at 0x4C2DB9D: malloc (vg_replace_malloc.c:299)
by 0x4E895B8: g_malloc (in /usr/lib64/libglib-2.0.so.0.5000.3)
by 0x4EA1B12: g_slice_alloc (in /usr/lib64/libglib-2.0.so.0.5000.3)
by 0x4E7FE19: g_list_copy_deep (in /usr/lib64/libglib-2.0.so.0.5000.3)
by 0x93724D4: grl_lua_factory_source_may_resolve (grl-lua-factory.c:1696)
by 0x53BBC13: grl_source_may_resolve (grl-source.c:3464)
by 0x401A7B: test_may_resolve_missing_media (test_spotify_cover.c:133)
https://bugzilla.gnome.org/show_bug.cgi?id=779444
tests/spotify-cover/test_spotify_cover.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/tests/spotify-cover/test_spotify_cover.c b/tests/spotify-cover/test_spotify_cover.c
index 9bcdac3..ef87eae 100644
--- a/tests/spotify-cover/test_spotify_cover.c
+++ b/tests/spotify-cover/test_spotify_cover.c
@@ -116,6 +116,7 @@ test_may_resolve_missing_key (void)
g_assert (GRLPOINTER_TO_KEYID (missing_keys->data) == GRL_METADATA_KEY_ALBUM);
g_object_unref (media);
+ g_list_free (missing_keys);
}
static void
@@ -139,6 +140,7 @@ test_may_resolve_missing_media (void)
g_assert (GRLPOINTER_TO_KEYID (missing_keys->next->data) == GRL_METADATA_KEY_ARTIST ||
GRLPOINTER_TO_KEYID (missing_keys->next->data) == GRL_METADATA_KEY_ALBUM);
g_assert (GRLPOINTER_TO_KEYID (missing_keys->data) != GRLPOINTER_TO_KEYID (missing_keys->next->data));
+ g_list_free (missing_keys);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]