Skip to content

RecipientFilter instances are never deleted #124

@jsza

Description

@jsza

I've managed to reproduce a memory leak on TF2 Linux (SP version 327) with:

from listeners import OnTick
from messages import KeyHintText
from filters.players import PlayerIter

text = 'a' * 240

@OnTick
def on_tick():
    for player in PlayerIter():
        for x in range(40):
            KeyHintText(text).send(player.index)

The flood of data causes the game client to freeze, but running the plugin causes a steady increase of ~1MB memory usage every few seconds.

I've tested with SayText2 and HintText messages with the same result.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions