svg_loader: memory leak after improper stop tag
authorMichal Maciola <m.maciola@samsung.com>
Thu, 1 Jul 2021 10:32:28 +0000 (12:32 +0200)
committerJunsuChoi <jsuya.choi@samsung.com>
Wed, 7 Jul 2021 02:57:02 +0000 (11:57 +0900)
commit0fd9f8a046bc16e2aa913e0f8639abad72de726a
tree08029d0e081e2e756297cafc17f561dbd136213d
parent2926ea370b7b7a27e9709947f6ebf3b7e96d9e3f
svg_loader: memory leak after improper stop tag

<stop> tag should be always a child of a <linearGradient> or
<radialGradient> element, but there were files with <stop> tag inside <rect>.
This patch fixes a memory leak if no gradient is defined before <stop> tag.
src/loaders/svg/tvgSvgLoader.cpp