]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/popupcmn.cpp
best size handling fix
[wxWidgets.git] / src / common / popupcmn.cpp
index d0414bce33fb50969485792fd1aefcbf719f82f1..62b1a21c3a97cc51514648a06b4f83f93c5168a8 100644 (file)
@@ -28,7 +28,7 @@
     #pragma hdrstop
 #endif
 
-#if wxUSE_POPUPWIN && !defined(__WXMOTIF__)
+#if wxUSE_POPUPWIN
 
 #include "wx/popupwin.h"
 
@@ -198,8 +198,9 @@ wxPopupTransientWindow::wxPopupTransientWindow(wxWindow *parent, int style)
 wxPopupTransientWindow::~wxPopupTransientWindow()
 {
     PopHandlers();
-
+#ifndef __WXX11__
     delete m_handlerFocus;
+#endif   
     delete m_handlerPopup;
 }