mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-11-26 10:49:21 +00:00
fix double free in SDL
This commit is contained in:
parent
63fa75adf0
commit
8f0df8ec70
@ -890,7 +890,10 @@ static int present_sdl_video()
|
||||
guest_surface != NULL)
|
||||
{
|
||||
SDL_Rect destRect = sdl_update_video_rect;
|
||||
if (SDL_BlitSurface(guest_surface, &sdl_update_video_rect, host_surface, &destRect) != 0) {
|
||||
LOCK_PALETTE;
|
||||
int result = SDL_BlitSurface(guest_surface, &sdl_update_video_rect, host_surface, &destRect);
|
||||
UNLOCK_PALETTE;
|
||||
if (result != 0) {
|
||||
SDL_UnlockMutex(sdl_update_video_mutex);
|
||||
return -1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user