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++
Fixed crash on closing secondary animated document during playback.
Emmet O'Neill33cb2b2fafed
diff --git a/libs/ui/canvas/kis_canvas2.cpp b/libs/ui/canvas/kis_canvas2.cppindex ca531322b8..0d5ca1d317 100644--- a/libs/ui/canvas/kis_canvas2.cpp+++ b/libs/ui/canvas/kis_canvas2.cpp@@ -139,6 +139,12 @@ public:~KisCanvas2Private(){inputActionGroupsMaskInterface->m_canvasPrivateRef = nullptr;++ // We need to make sure that the QScopedPointer gets freed within the scope+ // of KisCanvas2Private's lifespan. For some reason, this isn't guaranteed+ // and was causing a crash when closing a file when playback is happening+ // and there are multiple images. See Bug: 499658+ animationPlayer.reset();}