mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-13 19:54:17 +02:00
fixed memory leak in CTradeWindow::initItems
This commit is contained in:
@@ -427,7 +427,7 @@ void CTradeWindow::initItems(bool Left)
|
|||||||
hlp->pos = pos[j] + this->pos.topLeft();
|
hlp->pos = pos[j] + this->pos.topLeft();
|
||||||
items[Left].push_back(hlp);
|
items[Left].push_back(hlp);
|
||||||
}
|
}
|
||||||
|
vstd::clear_pointer(ids);
|
||||||
initSubs(Left);
|
initSubs(Left);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user