Skip to content

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

Open
iManGaaX wants to merge 1 commit into
multitheftauto:masterfrom
iManGaaX:patch-1
Open

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

Conversation

@iManGaaX

@iManGaaX iManGaaX commented Sep 2, 2026

Copy link
Copy Markdown
  • 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
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.

1 participant