Commit 09529746 authored by Waqar Ahmed's avatar Waqar Ahmed Committed by Christoph Cullmann
Browse files

Fix crash due to invalid pointer when jumping using CtrlClick

parent 11af5b30
......@@ -261,8 +261,13 @@ private:
Q_SLOT void clear(KTextEditor::Document* doc)
if (doc)
delete ranges[doc];
if (doc) {
auto it = ranges.find(doc);
if (it != ranges.end()) {
delete *it;
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