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
Notes: sideshowbarker 2024-07-19 15:37:51 +09:00
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));
}