Fix bug in svg

This commit is contained in:
Kirill Polyakov
2025-11-06 00:59:45 +03:00
parent 68f1c6f97d
commit 0477002e85
2 changed files with 2 additions and 2 deletions

View File

@ -171,7 +171,7 @@ bool CSvgFile::Draw(IRenderer *pRenderer, double dX, double dY, double dWidth, d
void CSvgFile::Clear()
{
RELEASEOBJECT(m_pContainer);
RELEASEINTERFACE(m_pContainer);
m_oSvgCalculator.Clear();
for (MarkedMap::reference oIter : m_mMarkedObjects)

View File

@ -117,7 +117,7 @@ namespace SVG
ScanStyles(oReader, pFile);
oReader.MoveToStart();
RELEASEOBJECT(pContainer);
RELEASEINTERFACE(pContainer);
pContainer = CObject::Create<CGraphicsContainer>(oReader, pFile);