diff --git a/src/libneochat/models/widgetmodel.cpp b/src/libneochat/models/widgetmodel.cpp index cfd71dc92..ae7fa98ac 100644 --- a/src/libneochat/models/widgetmodel.cpp +++ b/src/libneochat/models/widgetmodel.cpp @@ -104,7 +104,7 @@ public: void handlePendingEvent(const Quotient::RoomEvent *event); void buildJitsiIndex(); - NeoChatRoom *room = nullptr; + QPointer room; QMap state; int jitsiIndex = -1; };