mirror of
https://github.com/RGBCube/serenity
synced 2025-05-19 02:55:07 +00:00
LibGUI: Make event receivers be weak pointers.
This commit is contained in:
parent
9624b54703
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