changed from using dispose to deconstructor

This commit is contained in:
Harrison Deng 2019-01-13 22:08:58 -06:00
parent b3685cd80c
commit 3a3d424b62

View File

@ -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();
}
}
}