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:
Konsta 'sooda' Hölttä 2013-06-23 15:20:53 +03:00
parent 69b4f1a6ad
commit c630ed9caf

View File

@ -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;