summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2013-05-17 14:02:25 +0200
committerFridrich Strba <fridrich@documentfoundation.org>2013-05-17 14:34:34 +0000
commitc04dc880044ca84b80bb13ac900de84ceae2a561 (patch)
tree12b47a3e65769b34dd1d3998325fa1083abbc21b
parent401483d09d057e06cd9530e2ac53b4325caca577 (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/3941 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
-rw-r--r--svx/source/dialog/_contdlg.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/svx/source/dialog/_contdlg.cxx b/svx/source/dialog/_contdlg.cxx
index ddc11ed87e39..39f6325524c2 100644
--- a/svx/source/dialog/_contdlg.cxx
+++ b/svx/source/dialog/_contdlg.cxx
@@ -283,6 +283,8 @@ SvxSuperContourDlg::SvxSuperContourDlg( SfxBindings *_pBindings, SfxChildWindow
SvxSuperContourDlg::~SvxSuperContourDlg()
{
+ SvtMiscOptions aMiscOptions;
+ aMiscOptions.RemoveListenerLink( LINK(this, SvxSuperContourDlg, MiscHdl) );
}
// Resize methods