summaryrefslogtreecommitdiff
path: root/sw/source/uibase/sidebar/PageOrientationControl.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/uibase/sidebar/PageOrientationControl.cxx')
-rw-r--r--sw/source/uibase/sidebar/PageOrientationControl.cxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/sw/source/uibase/sidebar/PageOrientationControl.cxx b/sw/source/uibase/sidebar/PageOrientationControl.cxx
index 105eecccf13b..9e1b284a7328 100644
--- a/sw/source/uibase/sidebar/PageOrientationControl.cxx
+++ b/sw/source/uibase/sidebar/PageOrientationControl.cxx
@@ -63,7 +63,13 @@ PageOrientationControl::PageOrientationControl(
PageOrientationControl::~PageOrientationControl()
{
- delete mpOrientationValueSet;
+ disposeOnce();
+}
+
+void PageOrientationControl::dispose()
+{
+ mpOrientationValueSet.disposeAndClear();
+ ::svx::sidebar::PopupControl::dispose();
}
IMPL_LINK(PageOrientationControl, ImplOrientationHdl, void *, pControl)