mirror of
https://github.com/thorvg/thorvg.git
synced 2025-07-28 09:05:52 +00:00
common scene: fix a regression bug.
That is wrongly changed by 39bf94e506
renderer must be valid until all operations is done.
This commit is contained in:
parent
58f251163b
commit
234c1cefc8
1 changed files with 1 additions and 1 deletions
|
@ -177,9 +177,9 @@ struct Scene::Impl
|
||||||
for (auto paint = paints.data; paint < (paints.data + paints.count); ++paint) {
|
for (auto paint = paints.data; paint < (paints.data + paints.count); ++paint) {
|
||||||
if (dispose) (*paint)->pImpl->dispose(*renderer);
|
if (dispose) (*paint)->pImpl->dispose(*renderer);
|
||||||
if (free) delete(*paint);
|
if (free) delete(*paint);
|
||||||
renderer = nullptr;
|
|
||||||
}
|
}
|
||||||
paints.clear();
|
paints.clear();
|
||||||
|
renderer = nullptr;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue