summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-08-05 14:14:16 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-08-05 14:17:22 +0200
commit7627008b0671f16cf84a3f552e3316ab8d803ebb (patch)
tree1483a048069f9655dc9f7147af5b3a92433dad45 /sd
parent9b64eed1e58e57d08b5f02fdbd2a69b55a8132af (diff)
Clear() an SdPage while it is still an SdPage
... because when Clear() is later called in the SdrObjList sub-object dtor, freed SdrObject dtors may call back via SdrObject::SendUserCall into this virtual SdPage::Changed, but then this is only an SdrObjList, causing undef behavior. Change-Id: I09a2d1445a51a70e8f795ff869027899ad0f528b
Diffstat (limited to 'sd')
-rw-r--r--sd/source/core/sdpage.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sd/source/core/sdpage.cxx b/sd/source/core/sdpage.cxx
index 8f8f6e613a75..9e368eb80cd8 100644
--- a/sd/source/core/sdpage.cxx
+++ b/sd/source/core/sdpage.cxx
@@ -147,6 +147,8 @@ SdPage::~SdPage()
if( mpItems )
delete mpItems;
+
+ Clear();
}
struct OrdNumSorter