[anjal] Fix a crash



commit 4259060b50485188406cd08dfb941e47ce83149a
Author: Srinivasa Ragavan <sragavan novell com>
Date:   Sun Mar 22 20:00:28 2009 +0530

    Fix a crash
---
 src/mail-folder-view.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/mail-folder-view.c b/src/mail-folder-view.c
index a584707..6dfc2d5 100644
--- a/src/mail-folder-view.c
+++ b/src/mail-folder-view.c
@@ -213,7 +213,8 @@ mail_folder_view_finalize (GObject *object)
 	 MailFolderView *mfv = (MailFolderView  *)object;
 	 
 	 g_object_unref (mfv->model);
-	 camel_object_unref (mfv->priv->folder);
+	 if (mfv->priv->folder)
+		  camel_object_unref (mfv->priv->folder);
 	 g_free (mfv->priv->uri);
 	 g_free (mfv->priv);
 	G_OBJECT_CLASS (mail_folder_view_parent_class)->finalize (object);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]