From ee96aaec8e3627852226ffc63cb716f50fbeea86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Janiszewski?= Date: Tue, 15 Sep 2015 00:21:11 +0200 Subject: [PATCH] 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. --- src/ride/track.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/ride/track.c b/src/ride/track.c index 615e8b0a33..137396b123 100644 --- a/src/ride/track.c +++ b/src/ride/track.c @@ -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); } /**