summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-08-07 13:53:13 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-08-07 13:53:13 +0200
commit529bb272e296c7f41416d9392787bc2cdf5fe362 (patch)
tree56be38308228d167a96cccc02e5c3d60df6cba19 /sw
parentf31424e650c4f7d4a09a166377ee4890fd317292 (diff)
RemoveEventListener on self again
...as otherwise base class ~Window would call into WindowEventListener with this no longer a SwSidebarWin. Change-Id: Icfe942eef9a0adb58a59397b4f41514e0c696543
Diffstat (limited to 'sw')
-rw-r--r--sw/source/uibase/docvw/SidebarWin.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sw/source/uibase/docvw/SidebarWin.cxx b/sw/source/uibase/docvw/SidebarWin.cxx
index 7f574601e827..a284a7918d6f 100644
--- a/sw/source/uibase/docvw/SidebarWin.cxx
+++ b/sw/source/uibase/docvw/SidebarWin.cxx
@@ -185,6 +185,8 @@ SwSidebarWin::~SwSidebarWin()
mpVScrollbar = 0;
}
+ RemoveEventListener( LINK( this, SwSidebarWin, WindowEventListener ) );
+
AnchorOverlayObject::DestroyAnchorOverlayObject( mpAnchor );
mpAnchor = NULL;