Skip to content

Fix memory leak on player quit and add element validation in security - #739

Merged
ArranTuna merged 1 commit into
multitheftauto:masterfrom
iManGaaX:patch-1
Sep 4, 2026
Merged

Fix memory leak on player quit and add element validation in security#739
ArranTuna merged 1 commit into
multitheftauto:masterfrom
iManGaaX:patch-1

Conversation

@iManGaaX

@iManGaaX iManGaaX commented Sep 2, 2026

Copy link
Copy Markdown
Contributor
  • Added an onPlayerQuit event handler to clean up player data from tracking tables (tblPlayerProjectiles, tblRegularExplosions, tblVehicleExplosions) when a player disconnects to prevent memory leaks.
  • Added isElement checks inside the interval timer loop before executing logViolation to ensure disconnected players are not referenced.

Added event handler to clean up player data on quit.
@iManGaaX iManGaaX changed the title Fix memory leak on player quit and add element validation Fix memory leak on player quit and add element validation in security Sep 2, 2026
@ArranTuna
ArranTuna merged commit d06e21c into multitheftauto:master Sep 4, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants