Skip to content

Commit

Permalink
Select Orb Colors: attempt to fix memleak
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz committed Apr 11, 2017
1 parent 07895df commit f948d02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/dialogs/select_orb_colors.cpp
Expand Up @@ -93,7 +93,7 @@ void select_orb_colors::setup_orb_group(const std::string& base_id, bool& shown,
group<std::string>& group = groups_[base_id];

using iteration::walker_base;
walker_base* iter = selection.create_walker();
std::unique_ptr<walker_base> iter(selection.create_walker());
while(!iter->at_end(walker_base::child)) {
widget* next = iter->get(walker_base::child);
if(toggle_button* button = dynamic_cast<toggle_button*>(next)) {
Expand Down

0 comments on commit f948d02

Please sign in to comment.