]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/dlgcmn.cpp
Allow user code to override key events in generic wxListCtrl.
[wxWidgets.git] / src / common / dlgcmn.cpp
index 0ba3bc7d3308ca6cfe5f267c57aa93e2a8a64bcf..1a6b15c16b4c0abb44097cc9c30b53c1bdbe1722 100644 (file)
@@ -680,8 +680,7 @@ bool wxStandardDialogLayoutAdapter::DoLayoutAdaptation(wxDialog* dialog)
                     stdButtonSizer->Realize();
                 else
                 {
-                    delete buttonSizer;
-                    buttonSizer = NULL;
+                    wxDELETE(buttonSizer);
                 }
             }