Index: tests/RefCntTest.cpp |
diff --git a/tests/RefCntTest.cpp b/tests/RefCntTest.cpp |
index f5345b6a54162354d782bf5466af19f4f1e83e1e..d3cda7f38d38b2a52c08a7ed97ce7808444d4618 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); |
} |