From 85d37c9276535da0bf2684666af856f63ac3495c Mon Sep 17 00:00:00 2001 From: "Johan B. C. Engelen" Date: Fri, 28 Oct 2011 22:00:48 +0200 Subject: add a cppcheck suppression for memleak that is not a memleak (bzr r10700) --- src/ui/dialog/debug.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/ui/dialog/debug.cpp') 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 } -- cgit v1.2.3