Skip to content

Commit 3bc340a

Browse files
committed
remove double-free in MusicTrack (MusicWave 'owns' the data)
1 parent 9a861da commit 3bc340a

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

src/MusicManager.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -787,9 +787,6 @@ void MusicTrack::init() {
787787
}
788788

789789
MusicTrack::~MusicTrack() {
790-
for (int i = 0; i < (int)buffers.size(); i++) {
791-
delete[] buffers[i].data;
792-
}
793790
}
794791

795792
void MusicTrack::update(unsigned int latency) {

0 commit comments

Comments
 (0)