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,10 +188,12 @@ 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);