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:
Ben Noordhuis committed 2014-10-23 22:49:59 +02:00
1 parent 5ab87dba73
commit f874855d2e
1 file changed
+1 -1
+1 -1
View File
@@ -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();