Fixed memory leak in failure case that static analysis found.

main
Ryan C. Gordon 2015-04-10 21:15:51 -04:00
parent 7bd7221997
commit 2afa4aeda8
1 changed files with 1 additions and 0 deletions

View File

@ -193,6 +193,7 @@ GetDisplayMode(_THIS, const void *moderef, CVDisplayLinkRef link, SDL_DisplayMod
break;
case 8: /* We don't support palettized modes now */
default: /* Totally unrecognizable bit depth. */
SDL_free(data);
return SDL_FALSE;
}
mode->w = width;