diff --git a/RhythmBullet/Audio/Visualizer/HorizontalVisualizer.cs b/RhythmBullet/Audio/Visualizer/HorizontalVisualizer.cs index 4c6a62c..0e2ebce 100644 --- a/RhythmBullet/Audio/Visualizer/HorizontalVisualizer.cs +++ b/RhythmBullet/Audio/Visualizer/HorizontalVisualizer.cs @@ -11,7 +11,7 @@ using System.Threading.Tasks; namespace RecrownedAthenaeum.Audio.Visualizer { - internal class HorizontalVisualizer : UIModule, IDisposable + internal class HorizontalVisualizer : UIModule { private RectangleRenderer renderer; private const int BAR_COUNT = 70; @@ -102,9 +102,9 @@ namespace RecrownedAthenaeum.Audio.Visualizer } } - public void Dispose() + ~HorizontalVisualizer() { - barTexture.Dispose(); + renderer.Dispose(); } } }