diff options
Diffstat (limited to 'camel/camel-gpg-context.c')
-rw-r--r-- | camel/camel-gpg-context.c | 5 |
1 files changed, 4 insertions, 1 deletions
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); |