diff --git a/magic/src/rotate.c b/magic/src/rotate.c index 7369b9945..54a6dc4e6 100644 --- a/magic/src/rotate.c +++ b/magic/src/rotate.c @@ -153,7 +153,7 @@ float do_rotate(SDL_Surface * canvas, int x, int y, int smoothing_flag) dest.w = new_surf->w; dest.h = new_surf->h; SDL_BlitSurface(new_surf, NULL, canvas, &dest); - + SDL_FreeSurface(new_surf); /* Return the angle we ended up at */ return angle_rad; }