CVS commit by buis: Fixes big text related memleak. M +3 -1 GlyphTracerLibart.cpp 1.7 M +1 -1 GlyphTracerLibart.h 1.3 M +1 -1 LibartCanvasItems.cpp 1.89 --- kdegraphics/ksvg/plugin/backends/libart/GlyphTracerLibart.cpp #1.6:1.7 @@ -144,5 +144,7 @@ void GlyphTracerLibart::correctGlyph(Gly // Create a new empty path with the same size - BezierPathLibart *transformatedPath = new BezierPathLibart(art_bpath_affine_transform(path->m_array.data(), glyphAffine->affine().data())); + ArtBpath *transformed = art_bpath_affine_transform(path->m_array.data(), glyphAffine->affine().data()); + BezierPathLibart *transformatedPath = new BezierPathLibart(transformed); + art_free(transformed); glyphAffine->setTransformatedPath(transformatedPath); } --- kdegraphics/ksvg/plugin/backends/libart/GlyphTracerLibart.h #1.2:1.3 @@ -38,5 +38,5 @@ namespace T2P public: GlyphTracerLibart(); - ~GlyphTracerLibart(); + virtual ~GlyphTracerLibart(); virtual void correctGlyph(GlyphAffinePair *glyphAffine);