[colobot] 129/145: Fix class not unlocked when program is stopped
Didier Raboud
odyx at moszumanska.debian.org
Mon Jul 11 12:56:25 UTC 2016
This is an automated email from the git hooks/post-receive script.
odyx pushed a commit to branch debian/master
in repository colobot.
commit d0d0c4f197f82fa4aa134cdd6ab2c436c1748715
Author: melex750 <melex750 at users.noreply.github.com>
Date: Fri Jun 24 17:29:32 2016 -0400
Fix class not unlocked when program is stopped
#626
---
src/CBot/CBotProgram.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/CBot/CBotProgram.cpp b/src/CBot/CBotProgram.cpp
index dde36bb..d0284ea 100644
--- a/src/CBot/CBotProgram.cpp
+++ b/src/CBot/CBotProgram.cpp
@@ -214,6 +214,7 @@ bool CBotProgram::Run(void* pUser, int timer)
m_error = m_stack->GetError(m_errorStart, m_errorEnd);
m_stack->Delete();
m_stack = nullptr;
+ CBotClass::FreeLock(this);
return true; // execution is finished!
}
@@ -226,6 +227,7 @@ void CBotProgram::Stop()
m_stack->Delete();
m_stack = nullptr;
m_entryPoint = nullptr;
+ CBotClass::FreeLock(this);
}
////////////////////////////////////////////////////////////////////////////////
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/colobot.git
More information about the Pkg-games-commits
mailing list