diff options
Diffstat (limited to 'src/resources/image.cpp')
-rw-r--r-- | src/resources/image.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/resources/image.cpp b/src/resources/image.cpp index e9260071f..ec74630ff 100644 --- a/src/resources/image.cpp +++ b/src/resources/image.cpp @@ -479,7 +479,10 @@ Image* Image::SDLgetScaledImage(int width, int height) // The load function takes care of the SDL<->OpenGL implementation // and about freeing the given SDL_surface*. if (scaledSurface) + { scaledImage = load(scaledSurface); + SDL_FreeSurface(scaledSurface); + } } return scaledImage; } |