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.
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 ofWindowWin
. 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.