[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [calligra] sheets: fix memleak
From: Tomas Mecir <mecirt () gmail ! com>
Date: 2016-04-09 19:43:32
Message-ID: E1aoyn6-0005X7-5c () scm ! kde ! org
[Download RAW message or body]
Git commit 9e786fbe1a4bc26d15b467089e2fc5cda4097683 by Tomas Mecir.
Committed on 09/04/2016 at 13:27.
Pushed by mecir into branch 'master'.
fix memleak
M +1 -2 sheets/Sheet.cpp
http://commits.kde.org/calligra/9e786fbe1a4bc26d15b467089e2fc5cda4097683
diff --git a/sheets/Sheet.cpp b/sheets/Sheet.cpp
index 8cc53cc..e740541 100644
--- a/sheets/Sheet.cpp
+++ b/sheets/Sheet.cpp
@@ -1526,8 +1526,7 @@ bool Sheet::loadXML(const KoXmlElement& sheet)
rl->setSheet(this);
if (rl->load(e))
insertRowFormat(rl);
- else
- delete rl;
+ delete rl;
} else if (tagName == "column") {
ColumnFormat *cl = new ColumnFormat();
cl->setSheet(this);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic