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



commit 39e42a6538ea172e5edcd3b7bb96b6133cf07cf2
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]