aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/RefCntTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/RefCntTest.cpp')
-rw-r--r--tests/RefCntTest.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/RefCntTest.cpp b/tests/RefCntTest.cpp
index f5345b6a54..d3cda7f38d 100644
--- a/tests/RefCntTest.cpp
+++ b/tests/RefCntTest.cpp
@@ -99,6 +99,7 @@ public:
Effect() : fRefCnt(1) {
gNewCounter += 1;
}
+ virtual ~Effect() {}
int fRefCnt;
@@ -135,6 +136,8 @@ public:
};
struct EffectImpl : public Effect {
+ ~EffectImpl() override {}
+
static sk_sp<EffectImpl> Create() {
return sk_sp<EffectImpl>(new EffectImpl);
}