[evolution/kill-bonobo] Runtime warning (incorrect g_object_unref call) fix



commit 11593af886c7c1ca492b1ec2915e203934f8c8f2
Author: Milan Crha <mcrha redhat com>
Date:   Mon Aug 10 13:25:59 2009 +0200

    Runtime warning (incorrect g_object_unref call) fix

 composer/e-composer-autosave.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/composer/e-composer-autosave.c b/composer/e-composer-autosave.c
index 908ff8c..1fd04c3 100644
--- a/composer/e-composer-autosave.c
+++ b/composer/e-composer-autosave.c
@@ -83,7 +83,8 @@ composer_autosave_state_new (void)
 static void
 composer_autosave_state_free (AutosaveState *state)
 {
-	g_object_unref (state->file);
+	if (state->file)
+		g_object_unref (state->file);
 	g_slice_free (AutosaveState, state);
 }
 



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