diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-05-26 19:15:48 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-05-26 19:15:48 +0300 |
commit | aeef06d5d58dcc6f9339bf6ef5a87e06a4827b17 (patch) | |
tree | 463861d544a1b6bb4fbab4f5176fe812e6b58d97 /src/gui | |
parent | ce6905ac29998890ed41dc3039bb548a440e2608 (diff) | |
download | plus-aeef06d5d58dcc6f9339bf6ef5a87e06a4827b17.tar.gz plus-aeef06d5d58dcc6f9339bf6ef5a87e06a4827b17.tar.bz2 plus-aeef06d5d58dcc6f9339bf6ef5a87e06a4827b17.tar.xz plus-aeef06d5d58dcc6f9339bf6ef5a87e06a4827b17.zip |
Fix some imageset memory leaks.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/gui.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index 9df692515..a23da8157 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -264,6 +264,8 @@ void Gui::setUseCustomCursor(bool customCursor) SDL_ShowCursor(SDL_DISABLE); // Load the mouse cursor + if (mMouseCursors) + mMouseCursors->decRef(); mMouseCursors = Theme::getImageSetFromTheme("mouse.png", 40, 40); if (!mMouseCursors) |