diff --git a/src/chatdocumenthandler.h b/src/chatdocumenthandler.h index 096f0f098..3fa9a66c0 100644 --- a/src/chatdocumenthandler.h +++ b/src/chatdocumenthandler.h @@ -76,7 +76,7 @@ private: QQuickTextDocument *m_document; - NeoChatRoom *m_room = nullptr; + QPointer m_room; bool completionVisible = false; int m_cursorPosition;