1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 19:13:07 +01:00

Fix memory leak in New Ride window

The way the window handles strings might need to be updated at some point
to be a little bit cleaner, but this at least plugs the leak.
This commit is contained in:
Michael Steenbeek
2017-12-13 11:59:03 +01:00
parent e9dff344e4
commit 8095c970aa

View File

@@ -960,6 +960,7 @@ static void window_new_ride_paint_ride_information(rct_window *w, rct_drawpixeli
{
const char * drawString = _strdup(availabilityString);
gfx_draw_string_left_clipped(dpi, STR_AVAILABLE_VEHICLES, (void*)&drawString, COLOUR_BLACK, x, y + 39, WW - 2);
free((void *)drawString);
}
// Track designs are disabled in multiplayer, so don't say there are any designs available when in multiplayer