Skip to content
Permalink
Browse files

Fixed memory leak in failure case that static analysis found.

  • Loading branch information
icculus committed Apr 11, 2015
1 parent 7bd7221 commit 2afa4aeda8b406980f14559049d908abbd45c41b
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/video/cocoa/SDL_cocoamodes.m
@@ -193,6 +193,7 @@
break;
case 8: /* We don't support palettized modes now */
default: /* Totally unrecognizable bit depth. */
SDL_free(data);
return SDL_FALSE;
}
mode->w = width;

0 comments on commit 2afa4ae

Please sign in to comment.