mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-08 05:27:14 +09:00
LibLine: Unregister signal handlers on destruction
This fixes an issue that shows up as a nice crash when "^R<enter>^C", which is actually the event loop trying to call into a deleted object (the search editor).
This commit is contained in:
parent
d07ac4130f
commit
9b126a2250
Notes:
sideshowbarker
2024-07-18 23:58:35 +09:00
Author: https://github.com/alimpfard
Commit: 9b126a2250
Pull-request: https://github.com/SerenityOS/serenity/pull/4839
Reviewed-by: https://github.com/tomuta
3 changed files with 27 additions and 10 deletions
|
@ -237,7 +237,7 @@ void Editor::enter_search()
|
|||
// Disable our own notifier so as to avoid interfering with the search editor.
|
||||
m_notifier->set_enabled(false);
|
||||
|
||||
m_search_editor = Editor::construct(Configuration { Configuration::Eager }); // Has anyone seen 'Inception'?
|
||||
m_search_editor = Editor::construct(Configuration { Configuration::Eager, Configuration::NoSignalHandlers }); // Has anyone seen 'Inception'?
|
||||
m_search_editor->initialize();
|
||||
add_child(*m_search_editor);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue