[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [calligra] sheets/commands: fix memory leak
From:       Tomas Mecir <mecirt () gmail ! com>
Date:       2016-04-09 19:43:32
Message-ID: E1aoyn6-0005X7-4V () scm ! kde ! org
[Download RAW message or body]

Git commit 125a02bdddbf137c27775f978fecfba8c8ac39f1 by Tomas Mecir.
Committed on 09/04/2016 at 13:03.
Pushed by mecir into branch 'master'.

fix memory leak

M  +1    -1    sheets/commands/DeleteCommand.cpp

http://commits.kde.org/calligra/125a02bdddbf137c27775f978fecfba8c8ac39f1

diff --git a/sheets/commands/DeleteCommand.cpp b/sheets/commands/DeleteComm=
and.cpp
index fc88cb2..06a365f 100644
--- a/sheets/commands/DeleteCommand.cpp
+++ b/sheets/commands/DeleteCommand.cpp
@@ -130,7 +130,7 @@ bool DeleteCommand::mainProcessing()
             m_sheet->insertColumnFormat(new ColumnFormat(*columnFormat));
         }
         foreach(RowFormat* rowFormat, m_rowFormats) {
-            m_sheet->insertRowFormat(new RowFormat(*rowFormat));
+            m_sheet->insertRowFormat(*rowFormat);
         }
     }
     return AbstractDataManipulator::mainProcessing();

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic