Skip to content
This repository was archived by the owner on Jan 12, 2022. It is now read-only.
This repository was archived by the owner on Jan 12, 2022. It is now read-only.

Memory Leak #4

Description

@Thordin

I am getting a memory leak.

L 08/09/2019 - 16:45:46: [SM] MEMORY LEAK DETECTED IN PLUGIN (file "nativevotes.smx")
L 08/09/2019 - 16:45:46: [SM] Unloading plugin to free 9280 handles.
L 08/09/2019 - 16:45:46: [SM] Contact the author(s) of this plugin to correct this error.
L 08/09/2019 - 16:45:46: --------------------------------------------------------------------------
L 08/09/2019 - 16:45:46: Type   GameEvent           |   Count   9258
L 08/09/2019 - 16:45:46: Type   GlobalFwd           |   Count   1
L 08/09/2019 - 16:45:46: Type   PrivateFwd          |   Count   20
L 08/09/2019 - 16:45:46: Type   CellArray           |   Count   1
L 08/09/2019 - 16:45:46: -- Approximately 136 bytes of memory are in use by (9280) Handles.

I think maybe it is because this event isn't being closed. I am not sure.

optionsEvent.FireToClient(client);

https://sm.alliedmods.net/new-api/events/Event/FireToClient

Unlike Fire, this function DOES NOT close the event Handle.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions