diff options
Diffstat (limited to 'src/resources')
-rw-r--r-- | src/resources/image.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
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; |