diff options
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | src/resources/image.cpp | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -1,5 +1,6 @@ 2006-09-07 Björn Steinbrink <B.Steinbrink@gmx.de> + * src/resources/image.cpp: Fixed a typo. * src/resources/image.cpp: Worked around a memory leak when using OpenGL. diff --git a/src/resources/image.cpp b/src/resources/image.cpp index 6a7c79df..eb3a2409 100644 --- a/src/resources/image.cpp +++ b/src/resources/image.cpp @@ -260,7 +260,7 @@ void Image::unload() { mLoaded = false; - if (!mImage) { + if (mImage) { // Free the image surface. SDL_FreeSurface(mImage); mImage = NULL; |