mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 15:54:57 +01:00
Likely fix for occasional crash in editor_regions::region_changed()
This commit is contained in:
parent
472e8a0d7b
commit
89a7c41175
1 changed files with 2 additions and 1 deletions
|
|
@ -430,8 +430,9 @@ EditorRegions::region_changed (boost::shared_ptr<Region> r, const PropertyChange
|
||||||
/* this region is not on an active playlist
|
/* this region is not on an active playlist
|
||||||
* maybe it got deleted, or whatever */
|
* maybe it got deleted, or whatever */
|
||||||
if (map_it != region_row_map.end ()) {
|
if (map_it != region_row_map.end ()) {
|
||||||
|
Gtk::TreeModel::iterator r = map_it->second;
|
||||||
region_row_map.erase (map_it);
|
region_row_map.erase (map_it);
|
||||||
_model->erase (map_it->second);
|
_model->erase (r);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue