[Libreoffice-commits] core.git: sc/source
Markus Mohrhard
markus.mohrhard at googlemail.com
Fri Mar 11 06:35:30 UTC 2016
sc/source/filter/xcl97/XclExpChangeTrack.cxx | 1 +
1 file changed, 1 insertion(+)
New commits:
commit 1a474b37ef155ad640633bcffb0c7eaee0009243
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date: Fri Mar 11 02:31:45 2016 +0100
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 at googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard at googlemail.com>
diff --git a/sc/source/filter/xcl97/XclExpChangeTrack.cxx b/sc/source/filter/xcl97/XclExpChangeTrack.cxx
index bc23c54..9e9ccc2 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;
More information about the Libreoffice-commits
mailing list