From ed0afc6b2275ecd89d04416bf397ddca89dd85e9 Mon Sep 17 00:00:00 2001 From: Carlos Aragones <> Date: Sun, 17 May 2020 20:05:47 +0200 Subject: [PATCH] Fixed bug on old MacOS X --- src/macosx/MacMiniFB.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/macosx/MacMiniFB.m b/src/macosx/MacMiniFB.m index f051b32..139b8b2 100644 --- a/src/macosx/MacMiniFB.m +++ b/src/macosx/MacMiniFB.m @@ -188,11 +188,13 @@ destroy_window_data(SWindowData *window_data) { free(window_data_osx); } +#if defined(USE_METAL_API) if(window_data->draw_buffer != 0x0) { free(window_data->draw_buffer); window_data->draw_buffer = 0x0; } - +#endif + memset(window_data, 0, sizeof(SWindowData)); free(window_data);