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

View File

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