Commit 3b981ca9 authored by Elvis Angelaccio's avatar Elvis Angelaccio
Browse files

Remove Part from KXMLGUIFactory on exit.

This commit fixes a KXMLGUIClient warning about a possible crash due to leaks.

REVIEW: 120783
parent 2a552b1a
......@@ -53,6 +53,7 @@
#include <KStandardGuiItem>
#include <KTempDir>
#include <KToggleAction>
#include <KXMLGUIFactory>
#include <QAction>
#include <QCursor>
......@@ -137,6 +138,8 @@ Part::Part(QWidget *parentWidget, QObject *parent, const QVariantList& args)
Part::~Part()
{
factory()->removeClient(this);
saveSplitterSizes();
m_extractFilesAction->menu()->deleteLater();
......
Markdown is supported
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