The global wxCurrentPopupWindow used by wxMSW wasn't reset in this case and resulted in a crash during the next mouse or focus event. Do it in wxPopupWindow dtor now, and not just when the popup is hidden.
The global wxCurrentPopupWindow used by wxMSW wasn't reset in this case and resulted in a crash during the next mouse or focus event. Do it in wxPopupWindow dtor now, and not just when the popup is hidden.