[Libreoffice-commits] core.git: sc/source
Eike Rathke
erack at redhat.com
Tue Apr 11 11:43:11 UTC 2017
sc/source/core/data/postit.cxx | 5 +++++
1 file changed, 5 insertions(+)
New commits:
commit 24d935164f553bb4daa9be591c9cb392a86f06cd
Author: Eike Rathke <erack at redhat.com>
Date: Tue Apr 11 13:41:44 2017 +0200
there are still cases where the caption pointer is dangling
Change-Id: I8c186fa32d7fc3f26d7952268cb1e614025ecf37
diff --git a/sc/source/core/data/postit.cxx b/sc/source/core/data/postit.cxx
index 02502ed93c84..d2ef02f37b22 100644
--- a/sc/source/core/data/postit.cxx
+++ b/sc/source/core/data/postit.cxx
@@ -692,6 +692,10 @@ void ScCaptionPtr::decRefAndDestroy()
assert(!mpNext); // this must be one and only one
assert(mpCaption);
+#if 1
+ // FIXME: there are still cases where the caption pointer is dangling
+ mpCaption = nullptr;
+#else
// Destroying Draw Undo deletes its SdrObject, don't attempt that twice.
if (!mbInUndo)
{
@@ -705,6 +709,7 @@ void ScCaptionPtr::decRefAndDestroy()
SdrObject::Free( pObj );
}
}
+#endif
delete mpHead;
mpHead = nullptr;
}
More information about the Libreoffice-commits
mailing list