Index: src/core/SkPictureFlat.h |
diff --git a/src/core/SkPictureFlat.h b/src/core/SkPictureFlat.h |
index 64e51b740ed5b0987f7e3bb133a205d93b233be0..176f48625d1fc081dabeee0891f9b09b8d562795 100644 |
--- a/src/core/SkPictureFlat.h |
+++ b/src/core/SkPictureFlat.h |
@@ -135,13 +135,9 @@ protected: |
class SkFactoryPlayback { |
public: |
- SkFactoryPlayback(int count) : fCount(count) { |
- fArray = SkNEW_ARRAY(SkFlattenable::Factory, count); |
- } |
+ SkFactoryPlayback(int count) : fCount(count) { fArray = new SkFlattenable::Factory[count]; } |
- ~SkFactoryPlayback() { |
- SkDELETE_ARRAY(fArray); |
- } |
+ ~SkFactoryPlayback() { delete[] fArray; } |
SkFlattenable::Factory* base() const { return fArray; } |