From 53a26d83f435f3efbd6c49602b321acf624de58c Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Thu, 23 Oct 2014 22:22:00 +0200 Subject: [PATCH] src: mark BaseObject destructor as virtual Like the previous commit but this time for the BaseObject destructor. --- src/base-object.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/base-object.h b/src/base-object.h index 0e0df3e938..733346e688 100644 --- a/src/base-object.h +++ b/src/base-object.h @@ -30,7 +30,7 @@ namespace node { class BaseObject { public: BaseObject(Environment* env, v8::Local handle); - ~BaseObject(); + virtual ~BaseObject(); // Returns the wrapped object. Returns an empty handle when // persistent.IsEmpty() is true.