Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HackStudio: Stop crash from leaking Editor widgets when closing tabs
When re-opening an existing file, we would reuse the document and register a new Editor with it, but never unregister that Editor. Previously, this would cause a crash if you opened a binary file, closed its tab, then opened that binary file again. HackStudio would crash while calling `HackStudio::EditorWrapper::update_title()` on an invalid EditorWrapper. But now it doesn't! Something still gets leaked each time, but we now don't crash at least.
- Loading branch information