mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 18:12:10 +00:00
Fixed memory leak in GLToolbar
This commit is contained in:
@@ -149,6 +149,14 @@ GLToolbar::GLToolbar(GLCanvas3D& parent)
|
||||
{
|
||||
}
|
||||
|
||||
GLToolbar::~GLToolbar()
|
||||
{
|
||||
for (GLToolbarItem* item : m_items)
|
||||
{
|
||||
delete item;
|
||||
}
|
||||
}
|
||||
|
||||
bool GLToolbar::init(const std::string& icons_texture_filename, unsigned int items_icon_size, unsigned int items_icon_border_size, unsigned int items_icon_gap_size)
|
||||
{
|
||||
std::string path = resources_dir() + "/icons/";
|
||||
|
||||
Reference in New Issue
Block a user