Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Should never malloc SDL_Pallete

  • Loading branch information...
commit 1be4c6f15e05abf39c06210ea17c682a6f4bae9b 1 parent fca2734
@kthakore kthakore authored
Showing with 3 additions and 1 deletion.
  1. +2 −0  src/SDL.xs
  2. +1 −1  typemap
View
2  src/SDL.xs
@@ -1210,6 +1210,7 @@ ListModes ( format, flags )
}
OUTPUT:
RETVAL
+=skip
SDL_Palette *
NewPalette ( number )
@@ -1221,6 +1222,7 @@ NewPalette ( number )
RETVAL->ncolors = number;
OUTPUT:
RETVAL
+=cut
int
PaletteNColors ( palette, ... )
View
2  typemap
@@ -21,7 +21,7 @@ SDL_CDtrack * T_PTR
SDL_TimerCallback T_PTR
SDL_Rect * O_OBJECT
SDL_Color * O_OBJECT
-SDL_Palette * T_PTR
+SDL_Palette * O_OBJECT
SDL_PixelFormat * O_OBJECT
SDL_VideoInfo * O_OBJECT
SDL_Cursor * T_PTR
Please sign in to comment.
Something went wrong with that request. Please try again.