]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/dialog.cpp
another segfault fix
[wxWidgets.git] / src / os2 / dialog.cpp
index a0b3fa7c7be5b2f598c37a665fb84567b0650b02..aff9dac0157f71310a06426da6d6bf3cfc7c4c3b 100644 (file)
@@ -157,7 +157,7 @@ wxDialog::~wxDialog()
     m_isBeingDeleted = TRUE;
     wxTopLevelWindows.DeleteObject(this);
     Show(FALSE);
-    if (!IsModal)
+    if (!IsModal())
         wxModelessWindows.DeleteObject(this);
 
     //