aseprite / laf

A C++ library to create desktop applications
https://aseprite.github.io/laf/
MIT License
282 stars 61 forks source link

Fix crash on exit when color space is different from default system's #36

Closed iamOgunyinka closed 2 years ago

iamOgunyinka commented 2 years ago

This PR fixes the situation where there are lingering events in the global g_event event queue that references already nullified window and thus trigger an ASSERT in the destructor of WindowWin. This usually happen when the color space is different from the system's default. The severity and technicality of this bug is discussed in the Aseprite repository here.

dacap commented 2 years ago

Thanks Joshua, merged in https://github.com/aseprite/laf/commit/18f571bf9a1f3034c99040a0fd9855ca33d54b7e followed by https://github.com/aseprite/laf/commit/6eefcb859bfbf00a3d993d7bac6a44af93e00bd9