aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2009-08-10 19:25:59 +0800
committerMilan Crha <mcrha@redhat.com>2009-08-10 19:27:19 +0800
commita2d02ffd0c7d92c19db485a318eb2634ba3e2a1b (patch)
tree5f30da4d08fa7053baa1b4a1637a539e3821932e
parent200789a466854a6ff702e6ce97c3ea19f5dc0332 (diff)
downloadgsoc2013-evolution-a2d02ffd0c7d92c19db485a318eb2634ba3e2a1b.tar.gz
gsoc2013-evolution-a2d02ffd0c7d92c19db485a318eb2634ba3e2a1b.tar.zst
gsoc2013-evolution-a2d02ffd0c7d92c19db485a318eb2634ba3e2a1b.zip
Runtime warning (incorrect g_object_unref call) fix
-rw-r--r--composer/e-composer-autosave.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/composer/e-composer-autosave.c b/composer/e-composer-autosave.c
index 908ff8cf83..1fd04c3c1e 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);
}