mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 21:10:04 +00:00
Fix boost::containers::stable_vector memory leak in MapWidget
This commit is contained in:
parent
9e5890d95e
commit
0fff5f9e4d
1 changed files with 2 additions and 0 deletions
|
|
@ -1185,6 +1185,8 @@ void MapWidgetImpl::AddLayers()
|
|||
layerList_.clear();
|
||||
genericLayers_.clear();
|
||||
placefileLayers_.clear();
|
||||
customLayers_.clear();
|
||||
customLayers_.shrink_to_fit();
|
||||
|
||||
// Update custom layer list from model
|
||||
customLayers_ = model::LayerModel::Instance()->GetLayers();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue