You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bugfix(lan): Delete the lobby player when they leave the lobby - #3499
handleRequestLobbyLeave unlinks the leaving player with removePlayer but never deletes it, so every player who leaves the LAN lobby leaks a LANPlayer. The timeout path in LANAPI::update already deletes it.
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 2 remain after this review.
Walkthrough
The lobby leave handler now deletes the matching player object after removing it from the lobby player list.
Changes
Lobby leave cleanup
Layer / File(s)
Summary
Delete removed player Core/GameEngine/Source/GameNetwork/LANAPIhandlers.cpp
After removing the matching player from the lobby player list, the handler deletes the player object.
The reason will be displayed to describe this comment to others. Learn more.
simple
tintinhamans
added
Bug
Something is not working right, typically is user facing
Minor
Severity: Minor < Major < Critical < Blocker
Network
Anything related to network, servers
Gen
Relates to Generals
ZH
Relates to Zero Hour
Memory
Is memory related
labels
Oct 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BugSomething is not working right, typically is user facingGenRelates to GeneralsMemoryIs memory relatedMinorSeverity: Minor < Major < Critical < BlockerNetworkAnything related to network, serversZHRelates to Zero Hour
3 participants
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
handleRequestLobbyLeaveunlinks the leaving player withremovePlayerbut never deletes it, so every player who leaves the LAN lobby leaks aLANPlayer. The timeout path inLANAPI::updatealready deletes it.