summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-03-10 02:18:45 +0300
committerAndrei Karas <akaras@inbox.ru>2013-03-10 02:18:45 +0300
commit62ade2d8ed7a4dce1a9a17e6cacd9412a0d0c608 (patch)
tree0bd5c8923ddb101c70aa3038629b6a1741360d16 /src/client.cpp
parent11c9ec2609047da6794bacec4676895012767694 (diff)
downloadmanaverse-62ade2d8ed7a4dce1a9a17e6cacd9412a0d0c608.tar.gz
manaverse-62ade2d8ed7a4dce1a9a17e6cacd9412a0d0c608.tar.bz2
manaverse-62ade2d8ed7a4dce1a9a17e6cacd9412a0d0c608.tar.xz
manaverse-62ade2d8ed7a4dce1a9a17e6cacd9412a0d0c608.zip
Add missing breaks and fix possible memory leak.
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp2
1 files changed, 2 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);