From 7be51e781ca25895004d56f5a0c0451d8c153316 Mon Sep 17 00:00:00 2001 From: Martyn Russell Date: Wed, 23 Oct 2013 11:23:27 +0100 Subject: 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. --- libmediaart/cache.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libmediaart') 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); + } } /** -- cgit v1.2.1