reduce amount of times the pointer is freed to one

track_list_cache is being free()d as part of track_load_list, which
is a better place to do so, as it has full ownership of that pointer.
This commit is contained in:
Michał Janiszewski committed 2015-09-15 00:23:46 +02:00
1 parent 3ea534f758
commit ee96aaec8e
1 file changed
-1
-1
View File
@@ -397,7 +397,6 @@ void track_list_populate(ride_list_item item, uint8* track_list_cache){
}
RCT2_ADDRESS(RCT2_ADDRESS_TRACK_LIST, uint8)[cur_track_entry_index * 128] = '\0';
free(track_list_cache);
}
/**