DescriptionDouble free in ~SkPictureData()
On subpicture parsing failures we clean up all fPictureRefs entries
*and* delete the array itself. But the destructor also deletes the
array => double free.
Alternatively, we can set fPictureCount to the number of successfully
parsed pictures such that the destructor handles all the cleanup.
BUG=515228
R=reed@google.com,mtklein@google.com
Committed: https://skia.googlesource.com/skia/+/5479d3b5690c274bb53c78333c7c4d41cd5f9137
Patch Set 1 #
Total comments: 1
Patch Set 2 : improved version/review #
Total comments: 2
Patch Set 3 : indent #Messages
Total messages: 19 (6 generated)
|