From 4aa6e38d9993281a21ab8552abc79f69e6f5265a Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 13 Nov 2015 20:34:31 -0500 Subject: Make pugl::View destructor virtual --- pugl/pugl.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pugl/pugl.hpp b/pugl/pugl.hpp index b6386ac..a3bafab 100644 --- a/pugl/pugl.hpp +++ b/pugl/pugl.hpp @@ -43,7 +43,7 @@ public: puglSetDisplayFunc(_view, _onDisplay); } - ~View() { puglDestroy(_view); } + virtual ~View() { puglDestroy(_view); } virtual void initWindowParent(PuglNativeWindow parent) { puglInitWindowParent(_view, parent); -- cgit v1.2.1