Skip to content

Commit

Permalink
avoid memory leak by adding virtual destructor
Browse files Browse the repository at this point in the history
  • Loading branch information
firedtoad authored Feb 22, 2020
1 parent 2082845 commit d05d599
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions co_closure.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ struct stCoClosure_t
{
public:
virtual void exec() = 0;
virtual ~stCoClosure_t(){}
};

//1.base
Expand Down

0 comments on commit d05d599

Please sign in to comment.