Runtime warning (incorrect g_object_unref call) fix
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user