aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);
}