summaryrefslogtreecommitdiff
path: root/sc/source
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-03-11 02:31:45 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-03-11 06:35:06 +0000
commit1a474b37ef155ad640633bcffb0c7eaee0009243 (patch)
tree75a5966e31617e497eb945b6ec9db47d5410bd43 /sc/source
parent129d199d27f6961ea0c850686f76c83e2fc1953d (diff)
add assert to prevent memory leak
This is on my way of tracking a nasty memory leak in the change tracking export code. Change-Id: Ia46ef201f757dcd7f8764c3adf487de7fec58019 Reviewed-on: https://gerrit.libreoffice.org/23138 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'sc/source')
-rw-r--r--sc/source/filter/xcl97/XclExpChangeTrack.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/sc/source/filter/xcl97/XclExpChangeTrack.cxx b/sc/source/filter/xcl97/XclExpChangeTrack.cxx
index bc23c549488b..9e9ccc2c49d5 100644
--- a/sc/source/filter/xcl97/XclExpChangeTrack.cxx
+++ b/sc/source/filter/xcl97/XclExpChangeTrack.cxx
@@ -1544,6 +1544,7 @@ ScChangeTrack* XclExpChangeTrack::CreateTempChangeTrack()
if( !pOrigChangeTrack )
return nullptr;
+ assert(!pTempDoc);
// create empty document
pTempDoc = new ScDocument;