Fix memory leak overlay widget

This commit is contained in:
Dave Davenport 2016-08-02 18:32:23 +02:00
parent c9a7d91609
commit 90c6c1125f
1 changed files with 3 additions and 0 deletions

View File

@ -290,6 +290,9 @@ void rofi_view_free ( RofiViewState *state )
textbox_free ( state->prompt_tb );
textbox_free ( state->case_indicator );
scrollbar_free ( state->scrollbar );
if ( state->overlay ) {
textbox_free ( state->overlay );
}
for ( unsigned int i = 0; i < state->max_elements; i++ ) {
textbox_free ( state->boxes[i] );