From a325b676f3c67de9e7debd134075f9f9a6b3b338 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Mon, 26 Aug 2002 17:44:28 +0000 Subject: If the response is NULL, just return. (now works the same way as 2002-08-26 Jeffrey Stedfast * 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 --- camel/ChangeLog | 7 +++++++ camel/providers/imap/camel-imap-command.c | 3 +++ 2 files changed, 10 insertions(+) (limited to 'camel') diff --git a/camel/ChangeLog b/camel/ChangeLog index d8ef9c8547..e466cc9d58 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,10 @@ +2002-08-26 Jeffrey Stedfast + + * 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 * providers/imap/camel-imap-store.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; -- cgit v1.2.3