From 092a53b0aa3e03e64692f0a6401daffe3e5e73e2 Mon Sep 17 00:00:00 2001 From: Mira Grudzinska Date: Sun, 28 Aug 2022 23:45:29 +0200 Subject: [PATCH] svg_loader: fill and stroke paiint url were copied twice The url were copied in the _copyAttr and in the _styleCopy functions. --- src/loaders/svg/tvgSvgLoader.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/loaders/svg/tvgSvgLoader.cpp b/src/loaders/svg/tvgSvgLoader.cpp index 00c09111..3b3183d3 100644 --- a/src/loaders/svg/tvgSvgLoader.cpp +++ b/src/loaders/svg/tvgSvgLoader.cpp @@ -1992,8 +1992,6 @@ static void _copyAttr(SvgNode* to, const SvgNode* from) //Copy style attribute _styleCopy(to->style, from->style); to->style->flags = (SvgStyleFlags)((int)to->style->flags | (int)from->style->flags); - if (from->style->fill.paint.url) to->style->fill.paint.url = strdup(from->style->fill.paint.url); - if (from->style->stroke.paint.url) to->style->stroke.paint.url = strdup(from->style->stroke.paint.url); if (from->style->clipPath.url) to->style->clipPath.url = strdup(from->style->clipPath.url); if (from->style->mask.url) to->style->mask.url = strdup(from->style->mask.url);