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