summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2006-09-07 20:23:21 +0000
committerBjörn Steinbrink <B.Steinbrink@gmx.de>2006-09-07 20:23:21 +0000
commit2b99e70a462ce87d643c19a0c48c812ad6c98d67 (patch)
treee7dc561711487673b9ec37bf1e9bd92870532168
parentad98a108157ee171da5fac9f3af5cfd00501ff05 (diff)
downloadmana-2b99e70a462ce87d643c19a0c48c812ad6c98d67.tar.gz
mana-2b99e70a462ce87d643c19a0c48c812ad6c98d67.tar.bz2
mana-2b99e70a462ce87d643c19a0c48c812ad6c98d67.tar.xz
mana-2b99e70a462ce87d643c19a0c48c812ad6c98d67.zip
Fixed a typo.
-rw-r--r--ChangeLog1
-rw-r--r--src/resources/image.cpp2
2 files changed, 2 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 20af37fb..1b24b28d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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;