mirror of
https://github.com/kanjitalk755/macemu.git
synced 2025-02-10 07:30:30 +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)
|
guest_surface != NULL)
|
||||||
{
|
{
|
||||||
SDL_Rect destRect = sdl_update_video_rect;
|
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);
|
SDL_UnlockMutex(sdl_update_video_mutex);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user