Commit c9ecb4dc authored by Milian Wolff's avatar Milian Wolff
Browse files

Fix memory leak for CommitToolView::m_styleDelegate

parent 248518ca
Pipeline #202370 canceled with stage
in 12 minutes and 16 seconds
......@@ -254,6 +254,12 @@ CommitToolView::CommitToolView ( QWidget* parent, RepoStatusModel* repostatusmod
m_commitForm->enableCommitButton();
});
}
CommitToolView::~CommitToolView()
{
delete m_styleDelegate;
}
KDevelop::IProject* CommitToolView::activeProject() const
{
auto* proj_item = activeProjectItem();
......
......@@ -84,6 +84,7 @@ public:
* to delete it before the CommitToolView is deleted)
*/
CommitToolView(QWidget* parent, RepoStatusModel* m_statusmodel);
~CommitToolView() override;
/**
* @returns the currently active project (i.e. the one that
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment