projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
16821f2
)
Fix coverity #29604
author
Tobias Markus
<tobbi@mozilla-uk.org>
Fri, 27 Feb 2015 22:31:58 +0000
(23:31 +0100)
committer
Tobias Markus
<tobbi@mozilla-uk.org>
Fri, 27 Feb 2015 22:31:58 +0000
(23:31 +0100)
src/supertux/sector.cpp
patch
|
blob
|
history
diff --git
a/src/supertux/sector.cpp
b/src/supertux/sector.cpp
index
8575297
..
c9879c9
100644
(file)
--- a/
src/supertux/sector.cpp
+++ b/
src/supertux/sector.cpp
@@
-115,8
+115,15
@@
Sector::Sector(Level* parent) :
Sector::~Sector()
{
using namespace scripting;
+ try
+ {
+ deactivate();
+ }
+ catch(const std::exception& err)
+ {
+ log_warning << err.what() << std::endl;
+ }
- deactivate();
for(auto i = scripts.begin(); i != scripts.end(); ++i) {
HSQOBJECT& object = *i;