diff options
author | Martyn Russell <martyn@lanedo.com> | 2013-10-23 11:23:27 +0100 |
---|---|---|
committer | Martyn Russell <martyn@lanedo.com> | 2013-10-23 11:23:27 +0100 |
commit | 7be51e781ca25895004d56f5a0c0451d8c153316 (patch) | |
tree | 9716b54b41816977eb3ab420f4b0cb23eb5095b3 /libmediaart | |
parent | a687fc3ec5a1e15dad4fff7874ae93327f1a9923 (diff) | |
download | libmediaart-7be51e781ca25895004d56f5a0c0451d8c153316.tar.gz |
tests: Added to the unit tests to test ALL APIs.
There are many cases which fail and there are FIXMEs in the test case now
which we should fix before releasing.
Diffstat (limited to 'libmediaart')
-rw-r--r-- | libmediaart/cache.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libmediaart/cache.c b/libmediaart/cache.c index acf187a..b88f92c 100644 --- a/libmediaart/cache.c +++ b/libmediaart/cache.c @@ -381,7 +381,9 @@ media_art_get_path (const gchar *artist, *local_uri = local_file ? g_file_get_uri (local_file) : NULL; } - g_object_unref (file); + if (file) { + g_object_unref (file); + } } /** |