From kde-commits Wed Aug 17 07:33:28 2011 From: "Dr. Robert Marmorstein" Date: Wed, 17 Aug 2011 07:33:28 +0000 To: kde-commits Subject: [koffice] kcells: Fix a memory leak. Message-Id: <20110817073328.2315CA60A4 () git ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=131356642728123 Git commit 5b74a4da12f681314107176d13934c8467e6224d by Dr. Robert Marmorstein. Committed on 17/08/2011 at 09:32. Pushed by robertm into branch 'master'. Fix a memory leak. M +4 -1 kcells/KCFormula.cpp http://commits.kde.org/koffice/5b74a4da12f681314107176d13934c8467e6224d diff --git a/kcells/KCFormula.cpp b/kcells/KCFormula.cpp index 1f40ccb..311247a 100644 --- a/kcells/KCFormula.cpp +++ b/kcells/KCFormula.cpp @@ -1415,8 +1415,11 @@ KCValue KCFormula::evalRecursive(CellIndirection cellIndirections, QHashvalid) + if (!d->valid){ + if (!d->sheet) + delete map; return KCValue::errorPARSE(); + } for (int pc = 0; pc < d->codes.count(); pc++) { KCValue ret; // for the function caller