mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-11-27 02:49:42 +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();
|
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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user