Index: tools/viewer/sk_app/Window.h |
diff --git a/tools/viewer/sk_app/Window.h b/tools/viewer/sk_app/Window.h |
index eab8c1df545f716541a49e0b01a66536b161d5a4..db00405c07fd4828c1ac3db2630a5b6367847e4a 100644 |
--- a/tools/viewer/sk_app/Window.h |
+++ b/tools/viewer/sk_app/Window.h |
@@ -25,7 +25,7 @@ class Window { |
public: |
static Window* CreateNativeWindow(void* platformData); |
- virtual ~Window() {}; |
+ virtual ~Window() { this->detach(); }; |
virtual void setTitle(const char*) = 0; |
virtual void show() = 0; |