Skip to content

Commit 16f098b

Browse files
committed
Made sure to dispose stuff in the waveform panel.
1 parent 48d162e commit 16f098b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

FinModelUtility/UniversalAssetTool/UniversalAssetTool.Ui.Avalonia/resources/audio/AudioWaveformGlPanel.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,11 @@ public IAotAudioPlayback<short>? ActivePlayback {
2929
}
3030

3131
protected override void InitGl() => GlUtil.InitGl();
32-
protected override void TeardownGl() { }
32+
33+
protected override void TeardownGl() {
34+
this.waveformRenderer_.Dispose();
35+
this.viewMatricesUbo_?.Dispose();
36+
}
3337

3438
protected override void RenderGl() {
3539
this.GetBoundsForGlViewport(out var width, out var height);

0 commit comments

Comments
 (0)