summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/client.cpp2
-rw-r--r--src/touchmanager.cpp4
2 files changed, 6 insertions, 0 deletions
diff --git a/src/client.cpp b/src/client.cpp
index 9346a30b6..2d73b791f 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -2870,9 +2870,11 @@ void Client::logEvent(const SDL_Event &event)
case SDL_ACTIVEEVENT:
logger->log("event: SDL_ACTIVEEVENT: %d %d",
event.active.state, event.active.gain);
+ break;
#ifdef ANDROID
case SDL_ACCELEROMETER:
logger->log("event: SDL_ACCELEROMETER");
+ break;
#endif
default:
logger->log("event: other: %d", event.type);
diff --git a/src/touchmanager.cpp b/src/touchmanager.cpp
index f8768c824..8f9f20964 100644
--- a/src/touchmanager.cpp
+++ b/src/touchmanager.cpp
@@ -151,6 +151,10 @@ void TouchManager::loadTouchItem(TouchItem **item, std::string name,
fAll, fPressed, fReleased, fOut);
mObjects.push_back(*item);
}
+ else
+ {
+ delete images;
+ }
theme->unload(skin);
}
else