aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorPaul Gilbert2012-05-13 18:51:41 +1000
committerPaul Gilbert2012-05-13 18:51:41 +1000
commit8b214ce99211e9d952c0508e35066af8dc761916 (patch)
tree7da2fefc0ae0043c782e48a73edf94df3d972851 /common
parent8511b9b0cdfc05f3a43bc1ebfdf336fc2a558990 (diff)
downloadscummvm-rg350-8b214ce99211e9d952c0508e35066af8dc761916.tar.gz
scummvm-rg350-8b214ce99211e9d952c0508e35066af8dc761916.tar.bz2
scummvm-rg350-8b214ce99211e9d952c0508e35066af8dc761916.zip
COMMON: Converted Coro context structure definitions to instead use classes.
This fixes a problem with member variables declared in a method's context definition that are object instances were not having their destructors called.
Diffstat (limited to 'common')
-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;