[evolution-ews] Remove downloaded LZX files after processing them
- From: David Woodhouse <dwmw2 src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-ews] Remove downloaded LZX files after processing them
- Date: Fri, 24 May 2013 08:51:14 +0000 (UTC)
commit 014e6faa01a4eb647c9ce7524e6201cea48fc108
Author: David Woodhouse <David Woodhouse intel com>
Date: Fri May 24 09:51:06 2013 +0100
Remove downloaded LZX files after processing them
src/addressbook/e-book-backend-ews.c | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/src/addressbook/e-book-backend-ews.c b/src/addressbook/e-book-backend-ews.c
index 23ee418..ec582e9 100644
--- a/src/addressbook/e-book-backend-ews.c
+++ b/src/addressbook/e-book-backend-ews.c
@@ -2266,6 +2266,10 @@ ews_download_gal (EBookBackendEws *cbews, EwsOALDetails *full, GSList *deltas, g
if (det->seq != seq)
break;
+ if (lzx_path) {
+ g_unlink (lzx_path);
+ g_free (lzx_path);
+ }
lzx_path = ews_download_gal_file (cbews, det, cancellable, NULL);
if (!lzx_path)
break;
@@ -2300,7 +2304,10 @@ ews_download_gal (EBookBackendEws *cbews, EwsOALDetails *full, GSList *deltas, g
g_free (thisoab);
}
g_free (oab_file);
- g_free (lzx_path);
+ if (lzx_path) {
+ g_unlink (lzx_path);
+ g_free (lzx_path);
+ }
full:
d (printf ("Ewsgal: Downloading full gal \n"));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]