From bf00921965e43a88268569f268368f761b471eda Mon Sep 17 00:00:00 2001 From: Dimitri Tugo Date: Fri, 17 Oct 2025 16:05:24 +0200 Subject: [PATCH] memory leak fix --- src/swf/exporters/animate/AnimateLibrary.hx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/swf/exporters/animate/AnimateLibrary.hx b/src/swf/exporters/animate/AnimateLibrary.hx index 4d4388b..e3493fe 100644 --- a/src/swf/exporters/animate/AnimateLibrary.hx +++ b/src/swf/exporters/animate/AnimateLibrary.hx @@ -66,14 +66,12 @@ import openfl.filters.GlowFilter; private var rootPath:String; private var symbols:Map; private var symbolsByClassName:Map; - private var uuid:String; public function new(id:String, uuid:String = null) { super(); this.id = id; - this.uuid = uuid; instanceID = uuid != null ? uuid : id; @@ -86,7 +84,7 @@ import openfl.filters.GlowFilter; rootPath = ""; #end - instances.set(uuid, this); + instances.set(instanceID, this); // Hack to include filter classes, macro.include is not working properly @@ -446,7 +444,7 @@ import openfl.filters.GlowFilter; #if lime public override function unload():Void { - instances.remove(uuid); + instances.remove(instanceID); if (symbols == null) return; // if (swf == null) return;