From eaa8962b77f79da8799a4e00ea0b1357051faf9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ossi=20R=C3=B6nnberg?= Date: Sat, 4 Jun 2011 15:38:43 +0300 Subject: [PATCH] AutoDestroy parameter was never used on loadEmbedded and loadStream functions (Huge memory leak). Change-Id: Ibdeac1f247484faf7686f492c05005b3ea8d2213 --- org/flixel/FlxSound.as | 2 ++ 1 file changed, 2 insertions(+) diff --git a/org/flixel/FlxSound.as b/org/flixel/FlxSound.as index 2c9b3675..19dbc4aa 100644 --- a/org/flixel/FlxSound.as +++ b/org/flixel/FlxSound.as @@ -257,6 +257,7 @@ package org.flixel _sound = new EmbeddedSound(); //NOTE: can't pull ID3 info from embedded sound currently _looped = Looped; + autoDestroy = AutoDestroy; updateTransform(); exists = true; return this; @@ -279,6 +280,7 @@ package org.flixel _sound.addEventListener(Event.ID3, gotID3); _sound.load(new URLRequest(SoundURL)); _looped = Looped; + autoDestroy = AutoDestroy; updateTransform(); exists = true; return this;