Skip to content
New issue

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

prevent dereference of freed workspace #924

Merged
merged 2 commits into from
Oct 3, 2016

Conversation

deathlyfrantic
Copy link

This should fix #868. Essentially the problem was if the prior focused container was an empty workspace, it got destroyed in the update_focus() call, but then we were trying to dereference it again later. I'm not sure how this ever worked without the "hardened" CMakeLists.txt patch mentioned in #891.

I made a lot of other changes in this function to try to make it easier to follow. It took me a while to figure out what was going on so I figured comments and descriptive variable names might help.

@ddevault ddevault merged commit d2aba3c into swaywm:master Oct 3, 2016
@ddevault
Copy link
Contributor

ddevault commented Oct 3, 2016

Thanks!

@ddevault ddevault mentioned this pull request Dec 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Segmentation fault when switching from empty workspace
2 participants