[gnome-photos] flickr-item: Delete the remains if a file could not be downloaded
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] flickr-item: Delete the remains if a file could not be downloaded
- Date: Fri, 2 Aug 2013 16:25:05 +0000 (UTC)
commit b9f5cc068c6b85b8ac628fed94cea12ce89d583e
Author: Debarshi Ray <debarshir gnome org>
Date: Fri Aug 2 16:20:23 2013 +0200
flickr-item: Delete the remains if a file could not be downloaded
src/photos-flickr-item.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/photos-flickr-item.c b/src/photos-flickr-item.c
index 582a1c1..98c34eb 100644
--- a/src/photos-flickr-item.c
+++ b/src/photos-flickr-item.c
@@ -252,7 +252,10 @@ photos_flickr_item_download (PhotosBaseItem *item, GCancellable *cancellable, GE
NULL,
NULL,
error))
- goto out;
+ {
+ g_file_delete (local_file, NULL, NULL);
+ goto out;
+ }
}
ret_val = local_path;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]