We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
void Session::UpdateViews(const std::set<ViewId>& views) { ViewsMap::iterator it; ViewId vi; for (it = views_.begin(); it != views_.end(); ++it) { vi = ViewId(it->first); if (vi.is_valid() && 0 == views.count(vi)) { // invalidate handle RemoveView(vi); } } }
The RemoveView function deletes elements of the container views_. That operation invalidates the iterator, according to http://en.cppreference.com/w/cpp/container/set/erase, causing a seg fault.
Found on MAC.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The RemoveView function deletes elements of the container views_. That operation invalidates the iterator, according to http://en.cppreference.com/w/cpp/container/set/erase, causing a seg fault.
Found on MAC.
The text was updated successfully, but these errors were encountered: