From 506c95a1ec88bfcc624aad51238b13e1ed988301 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Wed, 4 Mar 2009 18:29:26 +0000 Subject: Do not unref NULL object. 2009-03-04 Milan Crha * mail-ops.c: (empty_trash_exec): Do not unref NULL object. svn path=/trunk/; revision=37369 --- mail/ChangeLog | 4 ++++ mail/mail-ops.c | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) (limited to 'mail') diff --git a/mail/ChangeLog b/mail/ChangeLog index 167b4d5eba..190e277ac2 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,7 @@ +2009-03-04 Milan Crha + + * mail-ops.c: (empty_trash_exec): Do not unref NULL object. + 2009-03-02 Matt McCutchen * evolution/mail/em-folder-view.c: diff --git a/mail/mail-ops.c b/mail/mail-ops.c index 7e6fe30269..7c5f0332d7 100644 --- a/mail/mail-ops.c +++ b/mail/mail-ops.c @@ -1756,10 +1756,10 @@ empty_trash_exec (struct _empty_trash_msg *m) g_free (uri); } - if (trash) + if (trash) { camel_folder_expunge (trash, &m->base.ex); - - camel_object_unref (trash); + camel_object_unref (trash); + } } static void -- cgit