From 30063f42cc8d13ed241a52b90e63c2c68599115e Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Fri, 27 May 2005 23:50:16 +0000 Subject: autoTarget is now a Being*, also may have fixed related crash and added label to show current target. --- src/resources/image.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/resources/image.cpp') diff --git a/src/resources/image.cpp b/src/resources/image.cpp index 59745894..2669059e 100644 --- a/src/resources/image.cpp +++ b/src/resources/image.cpp @@ -55,12 +55,9 @@ Image* Image::load(void* buffer, unsigned int bufferSize, int flags) // Load the raw file data from the buffer in an RWops structure SDL_RWops *rw = SDL_RWFromMem(buffer, bufferSize); - // Use SDL_Image to load the raw image data + // Use SDL_Image to load the raw image data and have it free the data SDL_Surface* tmpImage = IMG_Load_RW(rw, 1); - // Now free the SDL_RWops data - //SDL_FreeRW(rw); - #ifndef USE_OPENGL SDL_Surface *image; -- cgit v1.2.3-60-g2f50