fix cleanup (code is self-evident). From Yevgeny @ waves

This commit is contained in:
Paul Davis 2015-05-14 07:00:50 -04:00
parent 4d2d693190
commit e73b4e6f55

View File

@ -2789,6 +2789,16 @@ Session::cleanup_sources (CleanupReport& rep)
RegionFactory::remove_regions_using_source (i->second);
sources.erase (i);
// also remove source from all_sources
for (set<string>::iterator j = all_sources.begin(); j != all_sources.end(); ++j) {
spath = Glib::path_get_basename (*j);
if ( spath == i->second->name () ) {
all_sources.erase (j);
break;
}
}
}
}
}