scummvm/engines/tinsel
David Turner 9573b1d2f5 TINSEL: Memory Leak Fix in Coroutines.
This fixes the leak from the COR0_BEGIN_CODE macro's CoroContextTag allocation.
Setting the _sleep value to negative values prevented the deallocation of these.
Have tested for obvious regressions, but a full DW/DW2 playtest should be done to confirm that this doesn't cause any issues.
Thanks to fingolfin for indicating this solution.

svn-id: r55671
2011-01-30 23:21:40 +00:00
..
actors.cpp TINSEL: Mark all (?) global vars with a FIXME comment 2010-11-16 09:53:55 +00:00
actors.h Changed foo(void) to foo() in almost all non-backend source files 2009-11-02 21:54:57 +00:00
anim.cpp Change a couple places from 'end of namespace' to 'End of namespace', for consistency 2009-10-04 21:26:33 +00:00
anim.h Change doxygen inline comments from "//!" to "///" as proposed on -devel 2009-10-08 21:28:57 +00:00
background.cpp TINSEL: Mark all (?) global vars with a FIXME comment 2010-11-16 09:53:55 +00:00
background.h TINSEL: Mark all (?) global vars with a FIXME comment 2010-11-16 09:53:55 +00:00
bg.cpp TINSEL: Mark all (?) global vars with a FIXME comment 2010-11-16 09:53:55 +00:00
bmv.cpp TINSEL: Mark all (?) global vars with a FIXME comment 2010-11-16 09:53:55 +00:00
bmv.h Rename QueuedAudioStream to QueuingAudioStream 2010-01-08 22:06:04 +00:00
cliprect.cpp TINSEL: Replace global object s_rectList by a TinselEngine member var 2010-07-12 23:19:33 +00:00
cliprect.h Change a couple places from 'end of namespace' to 'End of namespace', for consistency 2009-10-04 21:26:33 +00:00
config.cpp Apply patch #2982163 - CONFIG: Use HE keyword instead of HB for the Hebrew language 2010-04-12 21:21:06 +00:00
config.h Increased the default Discworld 2 double-click time from 0.33 seconds to 0.55 seconds (from 6 to 10 frames) 2010-03-14 03:40:16 +00:00
coroutine.cpp TINSEL: Mark all (?) global vars with a FIXME comment 2010-11-16 09:53:55 +00:00
coroutine.h TINSEL: Memory Leak Fix in Coroutines. 2011-01-30 23:21:40 +00:00
cursor.cpp TINSEL: Mark all (?) global vars with a FIXME comment 2010-11-16 09:53:55 +00:00
cursor.h Changed foo(void) to foo() in almost all non-backend source files 2009-11-02 21:54:57 +00:00
debugger.cpp GUI: Add GCC_PRINTF to GUI::Debugger::DebugPrintf & fix resulting warnings 2010-11-01 16:03:35 +00:00
debugger.h DEBUG: Let GUI::Debugger::preEnter and postEnter (un)pause the engine 2010-12-07 18:54:21 +00:00
detection_tables.h TINSEL: Improve support for DW mac demo (see bug #3110936) 2010-12-07 18:00:18 +00:00
detection.cpp COMMON: Rename and tweak MD5 functions 2010-11-07 17:16:59 +00:00
dialogs.cpp TINSEL: Preliminary functionality for reading BE data files 2010-11-20 03:14:03 +00:00
dialogs.h Changed foo(void) to foo() in almost all non-backend source files 2009-11-02 21:54:57 +00:00
drives.cpp TINSEL: Fix support for file names with a trailing dot 2010-11-23 22:33:26 +00:00
drives.h TINSEL: Turn TinselFile into a SeekableReadStream 2010-11-23 22:26:43 +00:00
dw.h Change a couple places from 'end of namespace' to 'End of namespace', for consistency 2009-10-04 21:26:33 +00:00
effect.cpp Merged the tinsel 2 engine with tinsel 1. Both Discworld 1 and Discworld 2 should be completable 2008-12-01 20:35:36 +00:00
events.cpp TINSEL: Mark all (?) global vars with a FIXME comment 2010-11-16 09:53:55 +00:00
events.h Changed foo(void) to foo() in almost all non-backend source files 2009-11-02 21:54:57 +00:00
faders.cpp TINSEL: Get rid of some global variables 2010-11-17 12:13:23 +00:00
faders.h Changed foo(void) to foo() in almost all non-backend source files 2009-11-02 21:54:57 +00:00
film.h Change a couple places from 'end of namespace' to 'End of namespace', for consistency 2009-10-04 21:26:33 +00:00
font.cpp TINSEL: Get rid of some global variables 2010-11-17 12:13:23 +00:00
font.h Changed foo(void) to foo() in almost all non-backend source files 2009-11-02 21:54:57 +00:00
graphics.cpp TINSEL: Fix for #3087863 - Code analysis warnings 2010-10-15 08:52:22 +00:00
graphics.h Change a couple places from 'end of namespace' to 'End of namespace', for consistency 2009-10-04 21:26:33 +00:00
handle.cpp TINSEL: Improve support for DW mac demo (see bug #3110936) 2010-12-07 18:00:18 +00:00
handle.h Changed foo(void) to foo() in almost all non-backend source files 2009-11-02 21:54:57 +00:00
heapmem.cpp TINSEL: Mark all (?) global vars with a FIXME comment 2010-11-16 09:53:55 +00:00
heapmem.h TINSEL: Make HeapCompact local to heapmem.cpp; add code to print heap statistics 2009-10-27 00:37:54 +00:00
mareels.cpp TINSEL: Mark all (?) global vars with a FIXME comment 2010-11-16 09:53:55 +00:00
mareels.h Changed foo(void) to foo() in almost all non-backend source files 2009-11-02 21:54:57 +00:00
module.mk TINSEL: Add COROUTINE_DEBUG macro to ease debugging coroutine code 2010-10-30 00:33:11 +00:00
move.cpp TINSEL: Mark all (?) global vars with a FIXME comment 2010-11-16 09:53:55 +00:00
move.h Changed foo(void) to foo() in almost all non-backend source files 2009-11-02 21:54:57 +00:00
multiobj.cpp TINSEL: Add isValidObject(OBJECT *obj) function; make objectList & currentCD static vars; merge two logic blocks ('ifs') in DoRestoreSceneFrame 2009-11-02 21:57:16 +00:00
multiobj.h Change doxygen inline comments from "//!" to "///" as proposed on -devel 2009-10-08 21:28:57 +00:00
music.cpp COMMON: Split common/stream.h into several headers 2010-11-19 17:03:07 +00:00
music.h Changed foo(void) to foo() in almost all non-backend source files 2009-11-02 21:54:57 +00:00
object.cpp TINSEL: Mark all (?) global vars with a FIXME comment 2010-11-16 09:53:55 +00:00
object.h TINSEL: Add isValidObject(OBJECT *obj) function; make objectList & currentCD static vars; merge two logic blocks ('ifs') in DoRestoreSceneFrame 2009-11-02 21:57:16 +00:00
palette.cpp TINSEL: Get rid of some global variables 2010-11-17 12:13:23 +00:00
palette.h TINSEL: Get rid of some global variables 2010-11-17 12:13:23 +00:00
pcode.cpp TINSEL: Mark all (?) global vars with a FIXME comment 2010-11-16 09:53:55 +00:00
pcode.h TINSEL: Cleanup the 'script workaround' code a bit. 2010-02-15 10:01:26 +00:00
pdisplay.cpp TINSEL: Mark all (?) global vars with a FIXME comment 2010-11-16 09:53:55 +00:00
pdisplay.h TINSEL: Add EnablePointing() & DisablePointing() to pdisplay.h; turn DisablePointing from a coroutine into a plain function 2009-11-09 22:18:25 +00:00
pid.h Change a couple places from 'end of namespace' to 'End of namespace', for consistency 2009-10-04 21:26:33 +00:00
play.cpp TINSEL: Mark all (?) global vars with a FIXME comment 2010-11-16 09:53:55 +00:00
play.h Changed foo(void) to foo() in almost all non-backend source files 2009-11-02 21:54:57 +00:00
polygons.cpp TINSEL: Mark all (?) global vars with a FIXME comment 2010-11-16 09:53:55 +00:00
polygons.h Changed foo(void) to foo() in almost all non-backend source files 2009-11-02 21:54:57 +00:00
rince.cpp TINSEL: Remove unnecessary 'static' 2010-11-16 09:54:11 +00:00
rince.h Changed foo(void) to foo() in almost all non-backend source files 2009-11-02 21:54:57 +00:00
saveload.cpp TINSEL: Mark all (?) global vars with a FIXME comment 2010-11-16 09:53:55 +00:00
savescn.cpp TINSEL: Mark all (?) global vars with a FIXME comment 2010-11-16 09:53:55 +00:00
savescn.h TINSEL: cleanup 2010-10-31 21:50:48 +00:00
scene.cpp TINSEL: Mark all (?) global vars with a FIXME comment 2010-11-16 09:53:55 +00:00
scene.h TINSEL: Added new opcode set for the DW2 Demo 2010-10-22 21:08:27 +00:00
sched.cpp TINSEL: Mark all (?) global vars with a FIXME comment 2010-11-16 09:53:55 +00:00
sched.h Changed foo(void) to foo() in almost all non-backend source files 2009-11-02 21:54:57 +00:00
scn.cpp TINSEL: Improve support for DW mac demo (see bug #3110936) 2010-12-07 18:00:18 +00:00
scn.h TINSEL: Move ExtractActor from scn.* to play.* 2009-10-26 10:40:35 +00:00
scroll.cpp TINSEL: Mark all (?) global vars with a FIXME comment 2010-11-16 09:53:55 +00:00
scroll.h Changed foo(void) to foo() in almost all non-backend source files 2009-11-02 21:54:57 +00:00
sound.cpp TINSEL: Preliminary functionality for reading BE data files 2010-11-20 03:14:03 +00:00
sound.h Yet more Flac -> FLAC changes for consistency. 2010-02-03 09:42:40 +00:00
strres.cpp TINSEL: Preliminary functionality for reading BE data files 2010-11-20 03:14:03 +00:00
strres.h Changed foo(void) to foo() in almost all non-backend source files 2009-11-02 21:54:57 +00:00
sysvar.cpp TINSEL: Mark all (?) global vars with a FIXME comment 2010-11-16 09:53:55 +00:00
sysvar.h Changed foo(void) to foo() in almost all non-backend source files 2009-11-02 21:54:57 +00:00
text.cpp TINSEL: Remove unnecessary CORO_PARAM from ObjectTextOut 2010-10-30 00:34:21 +00:00
text.h TINSEL: Remove unnecessary CORO_PARAM from ObjectTextOut 2010-10-30 00:34:21 +00:00
timers.cpp TINSEL: Mark all (?) global vars with a FIXME comment 2010-11-16 09:53:55 +00:00
timers.h Changed foo(void) to foo() in almost all non-backend source files 2009-11-02 21:54:57 +00:00
tinlib.cpp TINSEL: Get rid of some global variables 2010-11-17 12:13:23 +00:00
tinlib.h Changed foo(void) to foo() in almost all non-backend source files 2009-11-02 21:54:57 +00:00
tinsel.cpp JANITORIAL: Suppress some useless includes 2011-01-02 14:06:42 +00:00
tinsel.h TINSEL: Preliminary functionality for reading BE data files 2010-11-20 03:14:03 +00:00
token.cpp TINSEL: Mark all (?) global vars with a FIXME comment 2010-11-16 09:53:55 +00:00
token.h Changed foo(void) to foo() in almost all non-backend source files 2009-11-02 21:54:57 +00:00