changed from using dispose to deconstructor
This commit is contained in:
parent
b3685cd80c
commit
3a3d424b62
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user