[evolution] Runtime warning (incorrect g_object_unref call) fix
- From: Milan Crha <mcrha src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [evolution] Runtime warning (incorrect g_object_unref call) fix
- Date: Mon, 10 Aug 2009 11:28:17 +0000 (UTC)
commit a2d02ffd0c7d92c19db485a318eb2634ba3e2a1b
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]