Fixed bug on old MacOS X

This commit is contained in:
Carlos Aragones 2020-05-17 20:05:47 +02:00
parent 51d00541e5
commit ed0afc6b22

View File

@ -188,11 +188,13 @@ destroy_window_data(SWindowData *window_data) {
free(window_data_osx); free(window_data_osx);
} }
#if defined(USE_METAL_API)
if(window_data->draw_buffer != 0x0) { if(window_data->draw_buffer != 0x0) {
free(window_data->draw_buffer); free(window_data->draw_buffer);
window_data->draw_buffer = 0x0; window_data->draw_buffer = 0x0;
} }
#endif
memset(window_data, 0, sizeof(SWindowData)); memset(window_data, 0, sizeof(SWindowData));
free(window_data); free(window_data);