mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-11-23 04:33:24 +00:00
bug-fix: don't double-free the inner SDL_Surface, when the guest OS switches video modes
This commit is contained in:
parent
e3a687ff1e
commit
a1a85a9315
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user