diff options
author | bubnikv <bubnikv@gmail.com> | 2018-10-24 12:48:44 +0300 |
---|---|---|
committer | bubnikv <bubnikv@gmail.com> | 2018-10-24 12:48:44 +0300 |
commit | f3c9a798dd26e18f766e5f9a2115173535131098 (patch) | |
tree | ac0d30e99b6c42b69453d30137079266bc074a17 /src/slic3r/GUI/GLToolbar.cpp | |
parent | 197458cf3a9ede7fd43f4124599c7584e8500f4a (diff) | |
parent | b59d416711c3501b2fe0d1a62e6e23fc78c1d39a (diff) |
Merge branch 'dev_native' of https://github.com/prusa3d/Slic3r into dev_native
Diffstat (limited to 'src/slic3r/GUI/GLToolbar.cpp')
-rw-r--r-- | src/slic3r/GUI/GLToolbar.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/slic3r/GUI/GLToolbar.cpp b/src/slic3r/GUI/GLToolbar.cpp index ec203541e..e094e1105 100644 --- a/src/slic3r/GUI/GLToolbar.cpp +++ b/src/slic3r/GUI/GLToolbar.cpp @@ -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/"; |