summaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/debug.cpp
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2011-10-28 20:00:48 +0000
committerJohan Engelen <goejendaagh@zonnet.nl>2011-10-28 20:00:48 +0000
commit85d37c9276535da0bf2684666af856f63ac3495c (patch)
treef43968435ef7d7635e420a329801d342d73de3bb /src/ui/dialog/debug.cpp
parentone constructor cannot call the other to initialize the object. See C++faq-li... (diff)
downloadinkscape-85d37c9276535da0bf2684666af856f63ac3495c.tar.gz
inkscape-85d37c9276535da0bf2684666af856f63ac3495c.zip
add a cppcheck suppression for memleak that is not a memleak
(bzr r10700)
Diffstat (limited to 'src/ui/dialog/debug.cpp')
-rw-r--r--src/ui/dialog/debug.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ui/dialog/debug.cpp b/src/ui/dialog/debug.cpp
index 7a2515789..426cd5d99 100644
--- a/src/ui/dialog/debug.cpp
+++ b/src/ui/dialog/debug.cpp
@@ -154,6 +154,8 @@ void DebugDialog::showInstance()
{
DebugDialog *debugDialog = getInstance();
debugDialog->show();
+ // this is not a real memleak because getInstance() only creates a debug dialog once, and returns that instance for all subsequent calls
+ // cppcheck-suppress memleak
}