From: Kartik Thakore Date: Mon, 26 Oct 2009 00:26:14 +0000 (-0400) Subject: Should never malloc SDL_Pallete X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=1be4c6f15e05abf39c06210ea17c682a6f4bae9b;p=sdlgit%2FSDL_perl.git Should never malloc SDL_Pallete --- diff --git a/src/SDL.xs b/src/SDL.xs index aadfd96..50e286a 100644 --- a/src/SDL.xs +++ b/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, ... ) diff --git a/typemap b/typemap index b39c5d5..7b13f87 100644 --- a/typemap +++ b/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