summaryrefslogtreecommitdiff
path: root/src/gui/gui.cpp
diff options
context:
space:
mode:
authorMaarten Vanraes <maarten.vanraes@gmail.com>2011-05-26 22:22:10 +0200
committerMaarten Vanraes <maarten.vanraes@gmail.com>2011-05-26 22:22:10 +0200
commit98b4c6c5b5eb7c60919108c130d534938aed853e (patch)
treee79828f1c10311314402544414a81d55f6177b9c /src/gui/gui.cpp
parent2115769d94e29479e404fdf08c553e755250dce1 (diff)
parentaeef06d5d58dcc6f9339bf6ef5a87e06a4827b17 (diff)
downloadmv-98b4c6c5b5eb7c60919108c130d534938aed853e.tar.gz
mv-98b4c6c5b5eb7c60919108c130d534938aed853e.tar.bz2
mv-98b4c6c5b5eb7c60919108c130d534938aed853e.tar.xz
mv-98b4c6c5b5eb7c60919108c130d534938aed853e.zip
Merge branch 'master' of git://gitorious.org/manaplus/manaplus
Diffstat (limited to 'src/gui/gui.cpp')
-rw-r--r--src/gui/gui.cpp2
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)