Free was too early.

This commit is contained in:
Martijn Koedam 2016-03-03 12:46:12 +01:00
parent b4cc0f611b
commit 797a3b8ea5
1 changed files with 1 additions and 1 deletions

View File

@ -269,7 +269,6 @@ void rofi_view_free ( RofiViewState *state )
g_free ( state->line_map );
g_free ( state->distance );
g_free ( state->lines_not_ascii );
g_free ( state );
// Free the switcher boxes.
// When state is free'ed we should no longer need these.
if ( config.sidebar_mode == TRUE ) {
@ -280,6 +279,7 @@ void rofi_view_free ( RofiViewState *state )
g_free ( state->modi );
state->num_modi = 0;
}
g_free ( state );
}
MenuReturn rofi_view_get_return_value ( const RofiViewState *state )