Skip to content

FlxCamera memory leak #176

Description

@erlioniel

Memory leak in FlxCamera. For example:

var i : int = 100;
while(i--) {
    var cam:FlxCamera = new FlxCamera(0,0,FlxG.width,FlxG.height);
    FlxG.addCamera(cam);
    FlxG.removeCamera(cam, true);
}

After this code in stage create memory usage over 100 mb. Also work with FlxG.resetCameras();

Activity

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions