Fix memory leak in SkPictureRecord
authorrobertphillips <robertphillips@google.com>
Tue, 23 Jun 2015 13:54:56 +0000 (06:54 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 23 Jun 2015 13:54:56 +0000 (06:54 -0700)
Review URL: https://codereview.chromium.org/1197283007

src/core/SkPictureRecord.cpp

index 018da0bb48951084aea018de501bf535af12bc90..32033b52db4cc740f45cfd6a7fbaba8c1330ef22 100644 (file)
@@ -37,6 +37,7 @@ SkPictureRecord::SkPictureRecord(const SkISize& dimensions, uint32_t flags)
 }
 
 SkPictureRecord::~SkPictureRecord() {
+    fImageRefs.unrefAll();
     fPictureRefs.unrefAll();
     fTextBlobRefs.unrefAll();
 }