mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
LibGUI: Make event receivers be weak pointers.
This commit is contained in:
parent
9624b54703
commit
95cfa49f1b
Notes:
sideshowbarker
2024-07-19 15:37:51 +09:00
Author: https://github.com/awesomekling
Commit: 95cfa49f1b
4 changed files with 23 additions and 24 deletions
|
|
@ -76,6 +76,6 @@ void GObject::stop_timer()
|
|||
|
||||
void GObject::delete_later()
|
||||
{
|
||||
GEventLoop::main().post_event(this, make<GEvent>(GEvent::DeferredDestroy));
|
||||
GEventLoop::main().post_event(*this, make<GEvent>(GEvent::DeferredDestroy));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue