mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 08:36:32 +01:00
Fix reference of track after free() (#4795).
git-svn-id: svn://localhost/ardour2/branches/3.0@11773 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
cc23c36961
commit
d7deaa21bb
1 changed files with 1 additions and 0 deletions
|
|
@ -875,6 +875,7 @@ smf_load_from_memory(const void *buffer, const size_t buffer_length)
|
||||||
if (parse_mtrk_chunk(track)) {
|
if (parse_mtrk_chunk(track)) {
|
||||||
g_warning("SMF warning: Cannot load track.");
|
g_warning("SMF warning: Cannot load track.");
|
||||||
smf_track_delete(track);
|
smf_track_delete(track);
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
track->file_buffer = NULL;
|
track->file_buffer = NULL;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue