Resolves: tdf#123309 destroy menu before menubutton

Change-Id: Ib6b179c460bed4ffdcc2678294633004bbae816a
Reviewed-on: https://gerrit.libreoffice.org/67677
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
diff --git a/cui/source/inc/cuitabline.hxx b/cui/source/inc/cuitabline.hxx
index 1c0753b..6349108 100644
--- a/cui/source/inc/cuitabline.hxx
+++ b/cui/source/inc/cuitabline.hxx
@@ -148,8 +148,6 @@ private:
    std::unique_ptr<weld::MetricSpinButton> m_xMtrEndWidth;
    std::unique_ptr<weld::CheckButton> m_xTsbCenterEnd;
    std::unique_ptr<weld::CheckButton> m_xCbxSynchronize;
    std::unique_ptr<weld::Menu> m_xGalleryMenu;
    std::unique_ptr<weld::Menu> m_xSymbolsMenu;
    std::unique_ptr<weld::CustomWeld> m_xCtlPreview;

    std::unique_ptr<weld::Widget> m_xFLEdgeStyle;
@@ -162,6 +160,8 @@ private:
    std::unique_ptr<weld::Widget> m_xFlSymbol;
    std::unique_ptr<weld::Widget> m_xGridIconSize;
    std::unique_ptr<weld::MenuButton> m_xSymbolMB;
    std::unique_ptr<weld::Menu> m_xSymbolsMenu;
    std::unique_ptr<weld::Menu> m_xGalleryMenu;
    std::unique_ptr<weld::MetricSpinButton> m_xSymbolWidthMF;
    std::unique_ptr<weld::MetricSpinButton> m_xSymbolHeightMF;
    std::unique_ptr<weld::CheckButton> m_xSymbolRatioCB;