[tracker/tracker-0.10] tracker-extract: Remove temp file in case of convert + symlink



commit ed4a14ba0f848a59de7ef25f5a8bf638a44ec4b6
Author: Philip Van Hoof <philip codeminded be>
Date:   Wed Aug 17 18:41:31 2011 +0200

    tracker-extract: Remove temp file in case of convert + symlink

 src/tracker-extract/tracker-albumart.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/tracker-extract/tracker-albumart.c b/src/tracker-extract/tracker-albumart.c
index 5b242b3..d21854f 100644
--- a/src/tracker-extract/tracker-albumart.c
+++ b/src/tracker-extract/tracker-albumart.c
@@ -121,6 +121,8 @@ convert_from_other_format (const gchar *found,
 				} else {
 					retval = TRUE;
 				}
+
+				g_unlink (target_temp);
 			} else {
 				/* If album-space-md5.jpg isn't the same as found,
 			 	 * make a new album-md5-md5.jpg (found -> target) */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]