renderer/text: --memory leak

regression by 71d3fce1dd
This commit is contained in:
Hermet Park 2024-08-22 21:40:39 +09:00
parent 9a1d169558
commit 222eb2720a

View file

@ -147,7 +147,7 @@ struct Text::Impl
auto text = Text::gen().release();
auto dup = text->pImpl;
dup->shape = static_cast<Shape*>(shape->duplicate());
static_cast<Shape*>(P(shape)->duplicate(dup->shape));
if (loader) {
dup->loader = loader;