X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=src%2FSDL.xs;h=07b3d0b35a3b45d16a512ff62037bebe74206644;hb=8898221d8f4f62490daab29e054fe38d824bf6d1;hp=806e60991b50e96d1d79725e4bc53ce7dd512157;hpb=89d02e07e2ec3457fd3881110d018f6c1999214c;p=sdlgit%2FSDL_perl.git diff --git a/src/SDL.xs b/src/SDL.xs index 806e609..07b3d0b 100644 --- a/src/SDL.xs +++ b/src/SDL.xs @@ -1414,10 +1414,11 @@ void UpdateRects ( surface, ... ) SDL_Surface *surface CODE: - SDL_Rect *rects, *temp; + SDL_Rect *rects, *oldrects, *temp; int num_rects,i; if ( items < 2 ) return; - num_rects = items - 1; + num_rects = items - 1; + oldrects = rects; rects = (SDL_Rect *)safemalloc(sizeof(SDL_Rect)*items); for(i=0;i