Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Kate
Commits
09529746
Commit
09529746
authored
Jan 13, 2021
by
Waqar Ahmed
Committed by
Christoph Cullmann
Jan 13, 2021
Browse files
Fix crash due to invalid pointer when jumping using CtrlClick
parent
11af5b30
Changes
1
Hide whitespace changes
Inline
Side-by-side
addons/lspclient/lspclientpluginview.cpp
View file @
09529746
...
...
@@ -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
;
ranges
.
remove
(
doc
);
}
}
}
private:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment