Select Orb Colors: attempt to fix memleak
This commit is contained in:
parent
07895df087
commit
f948d02509
1 changed files with 1 additions and 1 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue