MovingRanges are owned by the document. When the document is destroyed, it deletes its ranges. If clearAnnotations is called after the document is gone (e.g., view changed), qDeleteAll double-frees. Track the owning document with QPointer and only delete ranges if it's still alive. |
||
|---|---|---|
| .. | ||
| chat_renderer.cpp | ||
| chat_renderer.h | ||
| diffparams.h | ||
| ktexteditor_utils.h | ||
| metadata.json | ||
| ollie_ghost.cpp | ||
| ollie_ghost.h | ||
| ollie_kate.cpp | ||
| ollie_kate.h | ||