mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
src: mark AsyncWrap destructor as virtual
Make AsyncWrap::~AsyncWrap() virtual, otherwise it is unsafe to delete a derived class through a pointer to AsyncWrap. Fortunately, we don't do that anywhere right now; this commit is merely a preemptive bug fix.
This commit is contained in:
1 parent
5ab87dba73
commit
f874855d2e
1 file changed
+1
-1
+1
-1
@@ -61,7 +61,7 @@ class AsyncWrap : public BaseObject {
|
||||
v8::Handle<v8::Object> object,
|
||||
ProviderType provider);
|
||||
|
||||
inline ~AsyncWrap() = default;
|
||||
inline virtual ~AsyncWrap() = default;
|
||||
|
||||
inline bool has_async_listener();
|
||||
|
||||
|
||||
Reference in new issue
Block a user