summaryrefslogtreecommitdiff
path: root/libmediaart
diff options
context:
space:
mode:
authorMartyn Russell <martyn@lanedo.com>2013-10-23 11:23:27 +0100
committerMartyn Russell <martyn@lanedo.com>2013-10-23 11:23:27 +0100
commit7be51e781ca25895004d56f5a0c0451d8c153316 (patch)
tree9716b54b41816977eb3ab420f4b0cb23eb5095b3 /libmediaart
parenta687fc3ec5a1e15dad4fff7874ae93327f1a9923 (diff)
downloadlibmediaart-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.c4
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);
+ }
}
/**