aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2003-12-02 07:33:26 +0800
committerMichael Zucci <zucchi@src.gnome.org>2003-12-02 07:33:26 +0800
commitb626efedcac81217607d2eb502bff3de3a3dbdbc (patch)
tree46ee955212161c5fa95759f0369ced7b02d1c14b
parent9d8f9dea7be5a8d8973198eb5367d9f055f74974 (diff)
downloadgsoc2013-evolution-b626efedcac81217607d2eb502bff3de3a3dbdbc.tar
gsoc2013-evolution-b626efedcac81217607d2eb502bff3de3a3dbdbc.tar.gz
gsoc2013-evolution-b626efedcac81217607d2eb502bff3de3a3dbdbc.tar.bz2
gsoc2013-evolution-b626efedcac81217607d2eb502bff3de3a3dbdbc.tar.lz
gsoc2013-evolution-b626efedcac81217607d2eb502bff3de3a3dbdbc.tar.xz
gsoc2013-evolution-b626efedcac81217607d2eb502bff3de3a3dbdbc.tar.zst
gsoc2013-evolution-b626efedcac81217607d2eb502bff3de3a3dbdbc.zip
** See bug #51478.
2003-12-02 Not Zed <NotZed@Ximian.com> ** See bug #51478. * camel-gpg-context.c (gpg_ctx_free): handle the context being NULL, and exit silently. svn path=/trunk/; revision=23550
-rw-r--r--camel/ChangeLog7
-rw-r--r--camel/camel-gpg-context.c5
2 files changed, 11 insertions, 1 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index 4300a6a310..a24189bd76 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,3 +1,10 @@
+2003-12-02 Not Zed <NotZed@Ximian.com>
+
+ ** See bug #51478.
+
+ * camel-gpg-context.c (gpg_ctx_free): handle the context being
+ NULL, and exit silently.
+
2003-12-01 Jeffrey Stedfast <fejj@ximian.com>
* camel-process.c (camel_process_fork): Start at fd = 3.
diff --git a/camel/camel-gpg-context.c b/camel/camel-gpg-context.c
index 4b7f39dd7e..237540a381 100644
--- a/camel/camel-gpg-context.c
+++ b/camel/camel-gpg-context.c
@@ -386,7 +386,10 @@ static void
gpg_ctx_free (struct _GpgCtx *gpg)
{
int i;
-
+
+ if (gpg == NULL)
+ return;
+
if (gpg->session)
camel_object_unref (gpg->session);