[Digikam-devel] Fwd: [digikam] utilities/imageeditor/editor: add comment about memory leak

Andi Clemens andi.clemens at googlemail.com
Wed Dec 21 18:48:35 GMT 2011


The result can also be seen here:
==10289== 12 bytes in 1 blocks are still reachable in loss record 544 of  
2,501
==10289==    at 0x4029B64: operator new(unsigned int) (in  
/usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
==10289==    by 0x4409D83: Digikam::EditorWindow::EditorWindow(char  
const*) (editorwindow.cpp:204)
==10289==    by 0x806DF3E: ShowFoto::ShowFoto::ShowFoto(KUrl::List const&)  
(showfoto.cpp:169)
==10289==    by 0x806CC00: main (main.cpp:82)


Andi


------- Forwarded message -------
From: "Andi Clemens" <andi.clemens at googlemail.com>
To: kde-commits at kde.org
Cc:
Subject: [digikam] utilities/imageeditor/editor: add comment about memory  
leak
Date: Wed, 21 Dec 2011 19:46:46 +0100

Git commit 5e80b6bb845c42baf7feb657bd8118e44025f4ac by Andi Clemens.
Committed on 21/12/2011 at 19:46.
Pushed by aclemens into branch 'master'.

add comment about memory leak

M  +9    -0    utilities/imageeditor/editor/editortooliface.cpp

http://commits.kde.org/digikam/5e80b6bb845c42baf7feb657bd8118e44025f4ac

diff --git a/utilities/imageeditor/editor/editortooliface.cpp
b/utilities/imageeditor/editor/editortooliface.cpp
index e9b221d..ee45027 100644
--- a/utilities/imageeditor/editor/editortooliface.cpp
+++ b/utilities/imageeditor/editor/editortooliface.cpp
@@ -64,6 +64,15 @@ EditorToolIface* EditorToolIface::editorToolIface()
       return m_iface;
   }

+// FIXME: memory leak: QObject is not assigned a parent, so the
EditorToolIface object is not destroyed
+/*
+==10289== 8 bytes in 1 blocks are still reachable in loss record 485 of
2,501
+==10289==    at 0x4029B64: operator new(unsigned int) (in
/usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
+==10289==    by 0x4404F43:
Digikam::EditorToolIface::EditorToolIface(Digikam::EditorWindow*)
(editortooliface.cpp:68)
+==10289==    by 0x4409D94: Digikam::EditorWindow::EditorWindow(char
const*) (editorwindow.cpp:204)
+==10289==    by 0x806DF3E: ShowFoto::ShowFoto::ShowFoto(KUrl::List
const&) (showfoto.cpp:169)
+==10289==    by 0x806CC00: main (main.cpp:82)
+ */
   EditorToolIface::EditorToolIface(EditorWindow* editor)
       : QObject(), d(new EditorToolIfacePriv)
   {


-- 
Using Opera's revolutionary email client: http://www.opera.com/mail/



More information about the Digikam-devel mailing list