mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 16:10:04 +00:00
Disconnect cursor scale connection before anything overlay layer is destroid to avoid race conditions
This commit is contained in:
parent
fe61f31c40
commit
c64cd45953
1 changed files with 4 additions and 1 deletions
|
|
@ -166,7 +166,10 @@ OverlayLayer::OverlayLayer(std::shared_ptr<MapContext> context) :
|
|||
p->activeBoxOuter_->SetPosition(0.0f, 0.0f);
|
||||
}
|
||||
|
||||
OverlayLayer::~OverlayLayer() = default;
|
||||
OverlayLayer::~OverlayLayer()
|
||||
{
|
||||
p->cursorScaleConnection_.disconnect();
|
||||
}
|
||||
|
||||
void OverlayLayerImpl::SetCusorLocation(common::Coordinate coordinate)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue