diff options
author | Paul Gilbert | 2012-05-13 18:51:41 +1000 |
---|---|---|
committer | Paul Gilbert | 2012-05-13 18:51:41 +1000 |
commit | 8b214ce99211e9d952c0508e35066af8dc761916 (patch) | |
tree | 7da2fefc0ae0043c782e48a73edf94df3d972851 | |
parent | 8511b9b0cdfc05f3a43bc1ebfdf336fc2a558990 (diff) | |
download | scummvm-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.
-rw-r--r-- | common/coroutines.h | 2 |
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; |