lottie: make destructor virtual for proper cleanup of derived object 09/191309/1
authorsubhransu mohanty <sub.mohanty@samsung.com>
Tue, 16 Oct 2018 01:19:26 +0000 (10:19 +0900)
committersubhransu mohanty <sub.mohanty@samsung.com>
Tue, 16 Oct 2018 01:19:26 +0000 (10:19 +0900)
Change-Id: I0c91778834b46365598381e57363e36c2c91de63

src/vector/vdrawable.h

index 7f2ac52..c24bee4 100644 (file)
@@ -19,7 +19,7 @@ public:
         Stroke,
     };
     typedef vFlag<DirtyState> DirtyFlag;
-    VDrawable() = default;
+    virtual ~VDrawable() = default;
     void setPath(const VPath &path);
     void setFillRule(FillRule rule) { mFillRule = rule; }
     void setBrush(const VBrush &brush) { mBrush = brush; }