g_captureWindow is not set to NULL when window destroyed in wxGTK
|Reported by:||shaurz||Owned by:|
When a window is destroyed that currently has capture, g_captureWindow is not set back to NULL. This can obviously cause crashes but is difficult to reproduce reliably (we have seen them though).
The fix is to add the code below to wxWindowGTK::~wxWindowGTK in src/gtk/window.cpp:
if (g_captureWindow == this) g_captureWindow = NULL;