From 797a3b8ea5782d21f3b6256ece7fca3e69dc9b87 Mon Sep 17 00:00:00 2001 From: Martijn Koedam Date: Thu, 3 Mar 2016 12:46:12 +0100 Subject: [PATCH] Free was too early. --- source/view.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/view.c b/source/view.c index 78a45f9e..b9e4b0e8 100644 --- a/source/view.c +++ b/source/view.c @@ -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 )