Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++

Fix a safe assert in KoSvgTextShape's destructor

Dmitry Kazakovf37befc1cff4
diff --git a/libs/flake/text/KoSvgTextShape_p.h b/libs/flake/text/KoSvgTextShape_p.h
index 513da70940..074a1f0274 100644
--- a/libs/flake/text/KoSvgTextShape_p.h
+++ b/libs/flake/text/KoSvgTextShape_p.h
@@ -484,6 +484,7 @@ public:
}
~Private() {
+ internalShapesPainter.reset();
qDeleteAll(shapesInside);
shapesInside.clear();
qDeleteAll(shapesSubtract);