aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers/imap/camel-imap-folder.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2002-06-01 04:14:00 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2002-06-01 04:14:00 +0800
commit4b63089bda38776bf4aa20dc97e6db41823a061c (patch)
tree1fde7a92531e4fb0bb09f2c2268966c39dfb20f2 /camel/providers/imap/camel-imap-folder.c
parent60a6173744071e0eeacd73cfcba029fa593e81ac (diff)
downloadgsoc2013-evolution-4b63089bda38776bf4aa20dc97e6db41823a061c.tar
gsoc2013-evolution-4b63089bda38776bf4aa20dc97e6db41823a061c.tar.gz
gsoc2013-evolution-4b63089bda38776bf4aa20dc97e6db41823a061c.tar.bz2
gsoc2013-evolution-4b63089bda38776bf4aa20dc97e6db41823a061c.tar.lz
gsoc2013-evolution-4b63089bda38776bf4aa20dc97e6db41823a061c.tar.xz
gsoc2013-evolution-4b63089bda38776bf4aa20dc97e6db41823a061c.tar.zst
gsoc2013-evolution-4b63089bda38776bf4aa20dc97e6db41823a061c.zip
Revert my fix from the other day since camel_imap_command_response()
2002-05-31 Jeffrey Stedfast <fejj@ximian.com> * providers/imap/camel-imap-folder.c (imap_rescan): Revert my fix from the other day since camel_imap_command_response() doesn't guarentee that resp will be set to NULL on error. * providers/imap/camel-imap-command.c (camel_imap_command_response): Use a different variable to get the return of imap_parse_untagged so that we don't lose the pointer to the original malloc'd respbuf buffer. svn path=/trunk/; revision=17061
Diffstat (limited to 'camel/providers/imap/camel-imap-folder.c')
-rw-r--r--camel/providers/imap/camel-imap-folder.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/camel/providers/imap/camel-imap-folder.c b/camel/providers/imap/camel-imap-folder.c
index e798dcbebf..156111083a 100644
--- a/camel/providers/imap/camel-imap-folder.c
+++ b/camel/providers/imap/camel-imap-folder.c
@@ -513,9 +513,6 @@ imap_rescan (CamelFolder *folder, int exists, CamelException *ex)
g_datalist_clear (&data);
}
- /* Free the final tagged response */
- g_free (resp);
-
camel_operation_end (NULL);
if (type == CAMEL_IMAP_RESPONSE_ERROR) {
for (i = 0; i < summary_len && new[i].uid; i++)
@@ -524,6 +521,9 @@ imap_rescan (CamelFolder *folder, int exists, CamelException *ex)
return;
}
+ /* Free the final tagged response */
+ g_free (resp);
+
/* If we find a UID in the summary that doesn't correspond to
* the UID in the folder, then either: (a) it's a real UID,
* but the message was deleted on the server, or (b) it's a