]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/radiobox.cpp
guard against nullptr
[wxWidgets.git] / src / os2 / radiobox.cpp
index 26c89bd5ac1a5fa503f4b42cfa1de2cd58f461c6..19ff8a2bacf8024d6f0e3b33abfba5c7bef913ed 100644 (file)
@@ -18,7 +18,7 @@
 
 #ifndef WX_PRECOMP
     #include <stdio.h>
-    #include "wx/wxchar.h"
+    #include "wx/crt.h"
     #include "wx/string.h"
     #include "wx/bitmap.h"
     #include "wx/brush.h"
@@ -76,7 +76,7 @@ wxRadioBox::wxRadioBox()
 
 wxRadioBox::~wxRadioBox()
 {
-    m_isBeingDeleted = true;
+    SendDestroyEvent();
 
     if (m_hWnd)
         wxRemoveHandleAssociation(this);