diff options
author | Michael Stahl <mstahl@redhat.com> | 2013-05-17 14:02:25 +0200 |
---|---|---|
committer | Fridrich Strba <fridrich@documentfoundation.org> | 2013-05-17 14:31:40 +0000 |
commit | 253871bca7d5f8085424bf920eb781596dc0371e (patch) | |
tree | 49cc9b5545f5d21da3abe1077166ed2135475855 | |
parent | 9fbc213ac882540b4d267d11d29eda68df297f16 (diff) |
fdo#57079: SvxSuperContourDlg: unregister configuration listener
... in destructor. Otherwise it will access freed memory when
eventually called. This crashes since OOo 3.2 but no idea why it would
appear to not crash in earlier versions.
Change-Id: Ie3ab7ddf19fb1086f0b7d824555ab6b063e2b9ad
(cherry picked from commit fc63700181ab0f42eab5f98328074fe1682344f8)
Reviewed-on: https://gerrit.libreoffice.org/3937
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
-rw-r--r-- | svx/source/dialog/_contdlg.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/svx/source/dialog/_contdlg.cxx b/svx/source/dialog/_contdlg.cxx index d6e77a2a2402..94277ece99a6 100644 --- a/svx/source/dialog/_contdlg.cxx +++ b/svx/source/dialog/_contdlg.cxx @@ -265,6 +265,8 @@ SvxSuperContourDlg::SvxSuperContourDlg( SfxBindings *_pBindings, SfxChildWindow SvxSuperContourDlg::~SvxSuperContourDlg() { + SvtMiscOptions aMiscOptions; + aMiscOptions.RemoveListenerLink( LINK(this, SvxSuperContourDlg, MiscHdl) ); } // Resize methods |