Skip to content

Commit a69f9fc

Browse files
committed
1 parent 5e3bea5 commit a69f9fc

File tree

4 files changed

+28
-3
lines changed

4 files changed

+28
-3
lines changed

assets

Submodule assets updated 359 files

source/funkin/audio/visualize/ABotVis.hx

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,16 @@ class ABotVis extends FlxTypedSpriteGroup<FlxSprite>
6060
}
6161
}
6262

63+
override public function destroy():Void
64+
{
65+
if (analyzer != null)
66+
{
67+
analyzer.cleanup();
68+
}
69+
70+
super.destroy();
71+
}
72+
6373
public function initAnalyzer():Void
6474
{
6575
if (snd == null) return;
@@ -86,7 +96,12 @@ class ABotVis extends FlxTypedSpriteGroup<FlxSprite>
8696
public function dumpSound():Void
8797
{
8898
snd = null;
89-
analyzer = null;
99+
100+
if (analyzer != null)
101+
{
102+
analyzer.cleanup();
103+
analyzer = null;
104+
}
90105
}
91106

92107
var visTimer:Float = -1;

source/funkin/ui/charSelect/CharSelectGF.hx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,16 @@ class CharSelectGF extends FunkinSprite implements IBPMSyncedScriptedClass
2727
switchGF(Constants.DEFAULT_CHARACTER);
2828
}
2929

30+
override public function destroy():Void
31+
{
32+
if (analyzer != null)
33+
{
34+
analyzer.cleanup();
35+
}
36+
37+
super.destroy();
38+
}
39+
3040
public function onStepHit(event:SongTimeScriptEvent):Void {}
3141

3242
public function onBeatHit(event:SongTimeScriptEvent):Void

0 commit comments

Comments
 (0)