conhost: Free screen buffer data in destroy_screen_buffer.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2020-09-15 17:08:23 +02:00 committed by Alexandre Julliard
parent cc6c5f7823
commit 67324a4284
1 changed files with 1 additions and 0 deletions

View File

@ -223,6 +223,7 @@ static void destroy_screen_buffer( struct screen_buffer *screen_buffer )
if (screen_buffer->console->active == screen_buffer)
screen_buffer->console->active = NULL;
wine_rb_remove( &screen_buffer_map, &screen_buffer->entry );
free( screen_buffer->data );
free( screen_buffer );
}