mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-29 20:04:15 +00:00
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.
78 KiB
78 KiB