X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3c3ead1d1513a5eb79091a604f4e42b45d1bdf5d..66ddc77b88bb674c8112d5016731e60d9dd6f4a0:/src/ribbon/toolbar.cpp diff --git a/src/ribbon/toolbar.cpp b/src/ribbon/toolbar.cpp index 945204f269..9e8839bc92 100644 --- a/src/ribbon/toolbar.cpp +++ b/src/ribbon/toolbar.cpp @@ -15,10 +15,9 @@ #pragma hdrstop #endif -#include "wx/ribbon/toolbar.h" - #if wxUSE_RIBBON +#include "wx/ribbon/toolbar.h" #include "wx/ribbon/art.h" #include "wx/ribbon/bar.h" #include "wx/dcbuffer.h" @@ -433,6 +432,7 @@ bool wxRibbonToolBar::Realize() smallest_area = GetSizeInOrientation(size, major_axis); } } + delete[] row_sizes; // Position the groups wxSizeEvent dummy_event(GetSize());