aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/pdf
diff options
context:
space:
mode:
Diffstat (limited to 'src/pdf')
-rw-r--r--src/pdf/SkPDFShader.cpp4
-rw-r--r--src/pdf/SkPDFShader.h1
2 files changed, 3 insertions, 2 deletions
diff --git a/src/pdf/SkPDFShader.cpp b/src/pdf/SkPDFShader.cpp
index c3c3cd060c..152c693562 100644
--- a/src/pdf/SkPDFShader.cpp
+++ b/src/pdf/SkPDFShader.cpp
@@ -303,7 +303,7 @@ public:
class SkPDFFunctionShader : public SkPDFDict, public SkPDFShader {
public:
explicit SkPDFFunctionShader(SkPDFShader::State* state);
- ~SkPDFFunctionShader() {
+ virtual ~SkPDFFunctionShader() {
if (isValid()) {
RemoveShader(this);
}
@@ -328,7 +328,7 @@ private:
class SkPDFImageShader : public SkPDFStream, public SkPDFShader {
public:
explicit SkPDFImageShader(SkPDFShader::State* state);
- ~SkPDFImageShader() {
+ virtual ~SkPDFImageShader() {
RemoveShader(this);
fResources.unrefAll();
}
diff --git a/src/pdf/SkPDFShader.h b/src/pdf/SkPDFShader.h
index afa63e7631..f41bdf038e 100644
--- a/src/pdf/SkPDFShader.h
+++ b/src/pdf/SkPDFShader.h
@@ -60,6 +60,7 @@ protected:
static void RemoveShader(SkPDFObject* shader);
SkPDFShader();
+ virtual ~SkPDFShader() {};
virtual bool isValid() = 0;
};