Commit 9e2fa965 authored by Ilia Kats's avatar Ilia Kats Committed by Christoph Cullmann
Browse files

don't delete the model explicitly

it'll be deleted by the parent QObject automatically
parent cc3274db
......@@ -18,15 +18,10 @@ class LatexCompletionPlugin : public KTextEditor::Plugin
LatexCompletionPlugin(QObject *parent, const QVariantList &)
: KTextEditor::Plugin(parent)
, m_model(new LatexCompletionModel(parent))
, m_model(new LatexCompletionModel(this))
delete m_model;
QObject *createView(KTextEditor::MainWindow *mainWindow) override
for (auto view : mainWindow->views())
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