Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions com.unity.netcode.gameobjects/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ Additional documentation and release notes are available at [Multiplayer Documen

### Fixed

- Fixed: Issue where there was a potential for a small memory leak in the `ConnectionApprovedMessage`. (#3486)

### Changed

## [2.4.0] - 2025-06-02
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@ public void Handle(ref NetworkContext context)
{
NetworkLog.LogWarning($"[Client-{OwnerClientId}] Receiving duplicate connection approved. Client is already connected!");
}
ConnectedClientIds.Dispose();
return;
}

Expand Down Expand Up @@ -304,6 +305,9 @@ public void Handle(ref NetworkContext context)
}
}

// Dispose after it has been used.
ConnectedClientIds.Dispose();

// Only if scene management is disabled do we handle NetworkObject synchronization at this point
if (!networkManager.NetworkConfig.EnableSceneManagement)
{
Expand Down Expand Up @@ -387,7 +391,6 @@ public void Handle(ref NetworkContext context)
}
}
}
ConnectedClientIds.Dispose();
}
}
}