mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 23:35:03 +01:00
free track name/instrument string memory when necessary
This commit is contained in:
parent
28caef7d81
commit
8002a0c66e
1 changed files with 7 additions and 0 deletions
|
|
@ -150,6 +150,13 @@ smf_track_delete(smf_track_t *track)
|
|||
assert(track->events_array->len == 0);
|
||||
g_ptr_array_free(track->events_array, TRUE);
|
||||
|
||||
if (track->name) {
|
||||
free (track->name);
|
||||
}
|
||||
if (track->instrument) {
|
||||
free (track->instrument);
|
||||
}
|
||||
|
||||
memset(track, 0, sizeof(smf_track_t));
|
||||
free(track);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue