Disconnect cursor scale connection before anything overlay layer is destroid to avoid race conditions

This commit is contained in:
AdenKoperczak 2025-04-08 12:29:06 -04:00
parent fe61f31c40
commit c64cd45953
No known key found for this signature in database
GPG key ID: 9843017036F62EE7

View file

@ -166,7 +166,10 @@ OverlayLayer::OverlayLayer(std::shared_ptr<MapContext> context) :
p->activeBoxOuter_->SetPosition(0.0f, 0.0f); p->activeBoxOuter_->SetPosition(0.0f, 0.0f);
} }
OverlayLayer::~OverlayLayer() = default; OverlayLayer::~OverlayLayer()
{
p->cursorScaleConnection_.disconnect();
}
void OverlayLayerImpl::SetCusorLocation(common::Coordinate coordinate) void OverlayLayerImpl::SetCusorLocation(common::Coordinate coordinate)
{ {