summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2013-05-17 14:02:25 +0200
committerMichael Stahl <mstahl@redhat.com>2013-05-17 14:21:03 +0200
commitfc63700181ab0f42eab5f98328074fe1682344f8 (patch)
tree216ef0f64b8aabd490c1ecd08ba4860c3b638eec
parent71f990d286c603b3bf220c8d93af69f04a45dd7a (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
-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 ba192eb321b3..1b961bee0135 100644
--- a/svx/source/dialog/_contdlg.cxx
+++ b/svx/source/dialog/_contdlg.cxx
@@ -264,6 +264,8 @@ SvxSuperContourDlg::SvxSuperContourDlg( SfxBindings *_pBindings, SfxChildWindow
SvxSuperContourDlg::~SvxSuperContourDlg()
{
+ SvtMiscOptions aMiscOptions;
+ aMiscOptions.RemoveListenerLink( LINK(this, SvxSuperContourDlg, MiscHdl) );
}
// Resize methods