Author: nehalmistry Date: 2007-08-15 21:34:34 +0200 (Wed, 15 Aug 2007) New Revision: 2937
Modified: branches/pingus_sdl/src/sprite.cpp Log: fix error from last commit Modified: branches/pingus_sdl/src/sprite.cpp =================================================================== --- branches/pingus_sdl/src/sprite.cpp 2007-08-15 19:28:44 UTC (rev 2936) +++ branches/pingus_sdl/src/sprite.cpp 2007-08-15 19:34:34 UTC (rev 2937) @@ -386,9 +386,8 @@ ); SDL_FillRect(new_surface, NULL, SDL_MapRGBA(new_surface->format, color.r, color.g, color.b, color.a)); SDL_BlitSurface(new_surface, NULL, this->get_surface(), NULL); + SDL_FreeSurface(new_surface); } - - SDL_FreeSurface(new_surface); } /* EOF */ _______________________________________________ pingus-cvs mailing list pingus-cvs@nongnu.org http://lists.nongnu.org/mailman/listinfo/pingus-cvs