diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-05-26 17:33:52 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-05-26 17:34:09 +0100 |
commit | 2a6aa95a7af11eb091dfa9494cd810998b2e324d (patch) | |
tree | 5fea46e1d9de1f84f3a03561a612849e0df6a7a3 /svx/source/sidebar/tools | |
parent | 2efb9d3c9841397cca3a66714504ee25d2120bd2 (diff) |
Resolves: tdf#91542 crash on pressing return in sidebar line popup
Change-Id: I661a51f84827326dfc33a11a02f8065d68e8333a
Diffstat (limited to 'svx/source/sidebar/tools')
-rw-r--r-- | svx/source/sidebar/tools/Popup.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/svx/source/sidebar/tools/Popup.cxx b/svx/source/sidebar/tools/Popup.cxx index 71911a51ae72..3bd6246a5fcf 100644 --- a/svx/source/sidebar/tools/Popup.cxx +++ b/svx/source/sidebar/tools/Popup.cxx @@ -40,12 +40,17 @@ Popup::Popup ( OSL_ASSERT(maControlCreator); } -Popup::~Popup() +void Popup::dispose() { mxControl.disposeAndClear(); mxContainer.disposeAndClear(); } +Popup::~Popup() +{ + dispose(); +} + void Popup::Show (ToolBox& rToolBox) { rToolBox.SetItemDown(rToolBox.GetCurItemId(), true); |