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++

Don't free hold frame undo command at scope exit

Carsten Hartenfels57b27bfc66bc
diff --git a/plugins/dockers/animation/KisAnimTimelineFramesModel.cpp b/plugins/dockers/animation/KisAnimTimelineFramesModel.cpp
index 9ac71c6088..1d923d805f 100644
--- a/plugins/dockers/animation/KisAnimTimelineFramesModel.cpp
+++ b/plugins/dockers/animation/KisAnimTimelineFramesModel.cpp
@@ -1081,7 +1081,7 @@ bool KisAnimTimelineFramesModel::insertHoldFrames(const QModelIndexList &selecte
}
}
- KisProcessingApplicator::runSingleCommandStroke(m_d->image, parentCommand.get(),
+ KisProcessingApplicator::runSingleCommandStroke(m_d->image, parentCommand.release(),
KisStrokeJobData::BARRIER,
KisStrokeJobData::EXCLUSIVE);
return true;