Skip to content
Permalink
Browse files

SDL 1.2 ignores SDL_FreeSurface() attempts on the screen surface.

Fixes Bugzilla #4559.
  • Loading branch information
icculus committed Mar 22, 2019
1 parent 40f37f8 commit a3c135616a786874df907ded8d169dad21eb257b
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/SDL12_compat.c
@@ -2319,7 +2319,7 @@ SDL_CreateRGBSurfaceFrom(void *pixels, int width, int height, int depth, int pit
DECLSPEC void SDLCALL
SDL_FreeSurface(SDL12_Surface *surface12)
{
if (surface12) {
if (surface12 && (surface12 != VideoSurface12)) {
SDL20_FreeSurface(surface12->surface20);
if (surface12->format) {
SDL20_free(surface12->format->palette);

0 comments on commit a3c1356

Please sign in to comment.