diff --git a/src/chatdocumenthandler.h b/src/chatdocumenthandler.h index cf9735aeb..d489f9547 100644 --- a/src/chatdocumenthandler.h +++ b/src/chatdocumenthandler.h @@ -161,7 +161,7 @@ private: QQuickTextDocument *m_document; - NeoChatRoom *m_room = nullptr; + QPointer m_room; bool completionVisible = false; QColor m_mentionColor;