aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2002-08-27 01:44:28 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2002-08-27 01:44:28 +0800
commita325b676f3c67de9e7debd134075f9f9a6b3b338 (patch)
tree445fe74df6466c245bd780891b7fc8f5a7ea2dda
parent435ab87f0bf5a6d2f4c8cec529adc738f2675c23 (diff)
downloadgsoc2013-evolution-a325b676f3c67de9e7debd134075f9f9a6b3b338.tar
gsoc2013-evolution-a325b676f3c67de9e7debd134075f9f9a6b3b338.tar.gz
gsoc2013-evolution-a325b676f3c67de9e7debd134075f9f9a6b3b338.tar.bz2
gsoc2013-evolution-a325b676f3c67de9e7debd134075f9f9a6b3b338.tar.lz
gsoc2013-evolution-a325b676f3c67de9e7debd134075f9f9a6b3b338.tar.xz
gsoc2013-evolution-a325b676f3c67de9e7debd134075f9f9a6b3b338.tar.zst
gsoc2013-evolution-a325b676f3c67de9e7debd134075f9f9a6b3b338.zip
If the response is NULL, just return. (now works the same way as
2002-08-26 Jeffrey Stedfast <fejj@ximian.com> * providers/imap/camel-imap-command.c (camel_imap_response_free_without_processing): If the response is NULL, just return. (now works the same way as imap_response_free which allowed a NULL response argument). Fixes bug #25491. svn path=/trunk/; revision=17863
-rw-r--r--camel/ChangeLog7
-rw-r--r--camel/providers/imap/camel-imap-command.c3
2 files changed, 10 insertions, 0 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index d8ef9c8547..e466cc9d58 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,5 +1,12 @@
2002-08-26 Jeffrey Stedfast <fejj@ximian.com>
+ * providers/imap/camel-imap-command.c
+ (camel_imap_response_free_without_processing): If the response is
+ NULL, just return. (now works the same way as imap_response_free
+ which allowed a NULL response argument). Fixes bug #25491.
+
+2002-08-26 Jeffrey Stedfast <fejj@ximian.com>
+
* providers/imap/camel-imap-store.c:
* providers/imap/camel-imap-folder.c:
diff --git a/camel/providers/imap/camel-imap-command.c b/camel/providers/imap/camel-imap-command.c
index 3634eb389d..ef7dd1ba35 100644
--- a/camel/providers/imap/camel-imap-command.c
+++ b/camel/providers/imap/camel-imap-command.c
@@ -584,6 +584,9 @@ void
camel_imap_response_free_without_processing (CamelImapStore *store,
CamelImapResponse *response)
{
+ if (!response)
+ return;
+
if (response->folder) {
camel_object_unref (CAMEL_OBJECT (response->folder));
response->folder = NULL;