Runtime warning (incorrect g_object_unref call) fix

This commit is contained in:
Milan Crha
2009-08-10 13:25:59 +02:00
parent 200789a466
commit a2d02ffd0c

View File

@ -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);
}