commit | a0dcd29f536b195681684b3105842970d82383a5 | [log] [tgz] |
---|---|---|
author | KDr2 <zhuo@hexoasis.com> | Thu Feb 14 08:49:30 2019 +0000 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Thu Feb 14 13:32:34 2019 +0000 |
tree | beea682fb434a96a877ba399ac74a5af38b2a485 | |
parent | 729bb199dd967dec71ef6a3fee1a5cc6f72d1c1a [diff] |
Fix bug of the destructor of SkSVGDevice When SkSVGDevice owns `fWriter`, we must ensure that `fRootElement` is destructed before `fWriter`. Otherwise, while `fRootElement` is destrcuting, it tries to write data into `fWriter` who is alreay deleted. This bug is introduced by https://skia-review.googlesource.com/c/skia/+/192040. Change-Id: Idbb998a3c25f6e0d731e5070fd9f9bdde3afcd1a Reviewed-on: https://skia-review.googlesource.com/c/192301 Reviewed-by: Florin Malita <fmalita@chromium.org> Commit-Queue: Florin Malita <fmalita@chromium.org>