From 8b214ce99211e9d952c0508e35066af8dc761916 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sun, 13 May 2012 18:51:41 +1000 Subject: [PATCH] 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. --- common/coroutines.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/coroutines.h b/common/coroutines.h index fed82bf3f97..6df843887c6 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;