From a1a85a9315985d150c4af258906652e152d2dc05 Mon Sep 17 00:00:00 2001 From: David Ludwig Date: Sat, 22 Jul 2017 21:31:06 -0400 Subject: [PATCH] bug-fix: don't double-free the inner SDL_Surface, when the guest OS switches video modes --- BasiliskII/src/SDL/video_sdl.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/BasiliskII/src/SDL/video_sdl.cpp b/BasiliskII/src/SDL/video_sdl.cpp index e9454b0a..c788548b 100644 --- a/BasiliskII/src/SDL/video_sdl.cpp +++ b/BasiliskII/src/SDL/video_sdl.cpp @@ -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) {