diff options
author | Max Horn | 2010-10-30 00:33:54 +0000 |
---|---|---|
committer | Max Horn | 2010-10-30 00:33:54 +0000 |
commit | ac94cf274290911fc3ee5395202b30f161601a62 (patch) | |
tree | fb0d699467711aefdc8a0f2de927b06ea9c16818 /engines/tinsel/coroutine.cpp | |
parent | afb5986c9eaf172d2a00530012702f7054e95521 (diff) | |
download | scummvm-rg350-ac94cf274290911fc3ee5395202b30f161601a62.tar.gz scummvm-rg350-ac94cf274290911fc3ee5395202b30f161601a62.tar.bz2 scummvm-rg350-ac94cf274290911fc3ee5395202b30f161601a62.zip |
TINSEL: Fix subtle leak in coroutine code, some minor tweaks
* Fix a bug which caused coroutines invoked with nullContext to
leak their state.
Sadly, nullContext is underdocumented, yet very delicate and
full of subtleties... ./
* Move nullContext decl from sched.cpp to coroutine.cpp
* Enhance a few doxygen comments
svn-id: r53934
Diffstat (limited to 'engines/tinsel/coroutine.cpp')
-rw-r--r-- | engines/tinsel/coroutine.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/tinsel/coroutine.cpp b/engines/tinsel/coroutine.cpp index 89d00d12ac..a1871f90b0 100644 --- a/engines/tinsel/coroutine.cpp +++ b/engines/tinsel/coroutine.cpp @@ -28,6 +28,10 @@ namespace Tinsel { + +CoroContext nullContext = NULL; + + #if COROUTINE_DEBUG namespace { static int s_coroCount = 0; |