diff options
author | Eike Rathke <erack@redhat.com> | 2017-04-11 19:05:46 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2017-04-11 19:06:36 +0200 |
commit | 8aa8be724dafc266d7daeae325806ca2caae2efe (patch) | |
tree | 1fbc37d802d29b382555ad94fba36926b02603c7 | |
parent | 59aebc3e51490ba9c76a261b2e5090b12f30e0da (diff) |
deleting pModel also deletes the SdrCaptionObj
Change-Id: Icf3aed35ede1c211d6238dc66d86cb2866b247cd
-rw-r--r-- | sc/source/ui/view/notemark.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sc/source/ui/view/notemark.cxx b/sc/source/ui/view/notemark.cxx index a55cc917ab80..52dc58ef26d0 100644 --- a/sc/source/ui/view/notemark.cxx +++ b/sc/source/ui/view/notemark.cxx @@ -65,6 +65,9 @@ ScNoteMarker::ScNoteMarker( vcl::Window* pWin, vcl::Window* pRight, vcl::Window* ScNoteMarker::~ScNoteMarker() { + if (pModel) + mxObject.release(); // deleting pModel also deletes the SdrCaptionObj + InvalidateWin(); delete pModel; |