ogl_editor: set bookmarks NULL when freeing them
trackData's bookmarks are realloc()'d later when bookmarks are added if the pointer is not null, and realloc gets upset if it's freed already.
This commit is contained in:
parent
69b4f1a6ad
commit
c630ed9caf
@ -21,6 +21,7 @@ static void parseXml(mxml_node_t* rootNode, TrackData* trackData)
|
||||
mxml_node_t* node = rootNode;
|
||||
|
||||
free(trackData->bookmarks);
|
||||
trackData->bookmarks = NULL;
|
||||
trackData->bookmarkCount = 0;
|
||||
trackData->highlightRowStep = 8;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user