From: Kartik Thakore Date: Sat, 10 Oct 2009 23:42:32 +0000 (-0400) Subject: garu++ for stupid free X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=ba4797721e5127b1e1a3af41b90267bbcafe96ef;p=sdlgit%2FSDL_perl.git garu++ for stupid free --- diff --git a/src/SDL.xs b/src/SDL.xs index 135f1ca..01c5171 100644 --- a/src/SDL.xs +++ b/src/SDL.xs @@ -1357,11 +1357,11 @@ void UpdateRects ( surface, ... ) SDL_Surface *surface CODE: - SDL_Rect *rects, *oldrects, *temp; + SDL_Rect *rects, *temp; int num_rects,i; if ( items < 2 ) return; num_rects = items - 1; - oldrects = rects; + rects = (SDL_Rect *)safemalloc(sizeof(SDL_Rect)*items); for(i=0;i