mirror of
https://github.com/Tencent/libco.git
synced 2026-01-12 00:05:52 +08:00
avoid memory leak by adding virtual destructor
This commit is contained in:
@@ -22,6 +22,7 @@ struct stCoClosure_t
|
||||
{
|
||||
public:
|
||||
virtual void exec() = 0;
|
||||
virtual ~stCoClosure_t(){}
|
||||
};
|
||||
|
||||
//1.base
|
||||
|
||||
Reference in New Issue
Block a user