Skip to content

Commit

Permalink
Fix event leak in Multiplayer implementation
Browse files Browse the repository at this point in the history
Very likely closes ppy#29088. It's the only thing I could find odd in the
memory dump.
  • Loading branch information
peppy committed Aug 30, 2024
1 parent 60c1e0f commit 3bc42db
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions osu.Game/Screens/OnlinePlay/Multiplayer/Multiplayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,10 @@ protected override void Dispose(bool isDisposing)
base.Dispose(isDisposing);

if (client.IsNotNull())
{
client.RoomUpdated -= onRoomUpdated;
client.GameplayAborted -= onGameplayAborted;
}
}
}
}

0 comments on commit 3bc42db

Please sign in to comment.