1
Fork 0
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:
Andreas Kling 2019-02-26 00:51:49 +01:00
parent 9624b54703
commit 95cfa49f1b
4 changed files with 23 additions and 24 deletions

View file

@ -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));
}