[evolution-ews/gnome-3-8] Remove downloaded LZX files after processing them (cherry picked from commit 014e6faa01a4eb647c9ce75
- From: David Woodhouse <dwmw2 src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-ews/gnome-3-8] Remove downloaded LZX files after processing them (cherry picked from commit 014e6faa01a4eb647c9ce75
- Date: Mon, 10 Jun 2013 12:50:55 +0000 (UTC)
commit 55c3915551b6eaea81d5427a07833b7dbc116bbe
Author: David Woodhouse <David Woodhouse intel com>
Date: Fri May 24 09:51:06 2013 +0100
Remove downloaded LZX files after processing them
(cherry picked from commit 014e6faa01a4eb647c9ce7524e6201cea48fc108)
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 aec09c5..fbfd2bc 100644
--- a/src/addressbook/e-book-backend-ews.c
+++ b/src/addressbook/e-book-backend-ews.c
@@ -1824,6 +1824,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;
@@ -1858,7 +1862,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]