aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2012-05-13 18:51:41 +1000
committerPaul Gilbert2012-05-17 20:47:56 +1000
commit2341570e04e50fbe3c07af349cfe21534ccc4ea7 (patch)
tree2a672fcefb5419597c49f04a21ecb7d6c5228286
parentbd5b65f0071ecb907a8930cff8e91e565b990fb9 (diff)
downloadscummvm-rg350-2341570e04e50fbe3c07af349cfe21534ccc4ea7.tar.gz
scummvm-rg350-2341570e04e50fbe3c07af349cfe21534ccc4ea7.tar.bz2
scummvm-rg350-2341570e04e50fbe3c07af349cfe21534ccc4ea7.zip
COMMON: Converted Coro context structure definitions to instead use classes.
This fixes a known problem with class variables declared in a method's context definition were not having their destructors called.
-rw-r--r--common/coroutines.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/coroutines.h b/common/coroutines.h
index fed82bf3f9..6df843887c 100644
--- a/common/coroutines.h
+++ b/common/coroutines.h
@@ -57,7 +57,7 @@ struct CoroBaseContext {
const char *_funcName;
#endif
CoroBaseContext(const char *func);
- ~CoroBaseContext();
+ virtual ~CoroBaseContext();
};
typedef CoroBaseContext *CoroContext;