summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2013-05-17 14:02:25 +0200
committerAndras Timar <andras.timar@collabora.com>2013-11-05 10:47:16 +0100
commitcc005b0ac7ce330b6043eea46c6076165bad5e43 (patch)
tree7d1f2c668250c217779a0d4f4f539f96bf2211bd /svx
parentdbcff34d9aa85d6426b3cffa3716f1274a55c051 (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>
Diffstat (limited to 'svx')
-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 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