1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 15:47:45 +00:00

IRCClient: Use NonnullRefPtr<IRCClient> throughout

To protect against mishaps during app exit teardown, make sure everyone
who needs to be is a co-owner of the IRCClient object.

Fixes #3451.
This commit is contained in:
Andreas Kling 2020-09-10 18:42:26 +02:00
parent 039e529dbe
commit 4e0df06f86
6 changed files with 35 additions and 35 deletions

View file

@ -70,7 +70,7 @@ private:
void post_notification_if_needed(const String& name, const String& message);
IRCClient& m_client;
NonnullRefPtr<IRCClient> m_client;
void* m_owner { nullptr };
Type m_type;
String m_name;