diff options
Diffstat (limited to 'src/core/SkCanvas.cpp')
-rw-r--r-- | src/core/SkCanvas.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/SkCanvas.cpp b/src/core/SkCanvas.cpp index 7cda41e7d9..baf5d84016 100644 --- a/src/core/SkCanvas.cpp +++ b/src/core/SkCanvas.cpp @@ -409,7 +409,6 @@ SkCanvas::SkCanvas(SkDeviceFactory* factory) fDeviceFactory(factory) { inc_canvas(); - SkSafeRef(factory); if (!factory) fDeviceFactory = SkNEW(SkRasterDeviceFactory); @@ -439,8 +438,8 @@ SkCanvas::~SkCanvas() { this->internalRestore(); // restore the last, since we're going away SkSafeUnref(fBounder); - SkSafeUnref(fDeviceFactory); - + SkDELETE(fDeviceFactory); + dec_canvas(); } |