summaryrefslogtreecommitdiff
path: root/sc/source/core/data/cell.cxx
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-02-15 20:44:17 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-02-15 21:00:57 +0100
commit22763347d8d4f02729c93ed19c2040ebebabb5f1 (patch)
treefa89d4b63909209b19d636ebc2b62e1d172def29 /sc/source/core/data/cell.cxx
parent3ed5ab5e2a78914a38e349e82c9c1575ca635157 (diff)
coverity: fix memory leak
Change-Id: I1c4e6cd0b60047de45a4782bfebb8520b1a17f22
Diffstat (limited to 'sc/source/core/data/cell.cxx')
-rw-r--r--sc/source/core/data/cell.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/sc/source/core/data/cell.cxx b/sc/source/core/data/cell.cxx
index 75d1ced0eddf..97282b03eaeb 100644
--- a/sc/source/core/data/cell.cxx
+++ b/sc/source/core/data/cell.cxx
@@ -201,6 +201,7 @@ void adjustDBRange(ScToken* pToken, ScDocument& rNewDoc, const ScDocument* pOldD
if (!pNewDBCollection)
{
pNewDBCollection = new ScDBCollection(&rNewDoc);
+ rNewDoc.SetDBCollection(pNewDBCollection);
}
ScDBCollection::NamedDBs& aNewNamedDBs = pNewDBCollection->getNamedDBs();
ScDBData* pNewDBData = aNewNamedDBs.findByUpperName(aDBName);