bug-fix: don't double-free the inner SDL_Surface, when the guest OS switches video modes

This commit is contained in:
David Ludwig 2017-07-22 21:31:06 -04:00
parent e3a687ff1e
commit a1a85a9315
1 changed files with 1 additions and 2 deletions

View File

@ -879,8 +879,7 @@ driver_base::~driver_base()
ungrab_mouse();
restore_mouse_accel();
if (s)
SDL_FreeSurface(s);
shutdown_sdl_video();
// the_buffer shall always be mapped through vm_acquire_framebuffer()
if (the_buffer != VM_MAP_FAILED) {