13
0

Likely fix for occasional crash in editor_regions::region_changed()

This commit is contained in:
Ben Loftis 2020-07-12 12:05:23 -05:00
parent 472e8a0d7b
commit 89a7c41175

View File

@ -430,8 +430,9 @@ EditorRegions::region_changed (boost::shared_ptr<Region> r, const PropertyChange
/* this region is not on an active playlist
* maybe it got deleted, or whatever */
if (map_it != region_row_map.end ()) {
Gtk::TreeModel::iterator r = map_it->second;
region_row_map.erase (map_it);
_model->erase (map_it->second);
_model->erase (r);
}
return;
}