From 514c9b9b23f0300b9e7790a4124392d3cf41e9c5 Mon Sep 17 00:00:00 2001 From: Robert Reif Date: Fri, 4 Feb 2011 20:17:25 +0100 Subject: [PATCH] Fixed #2546 (make CheckMemoryLeakInClass also check structures) --- lib/checkmemoryleak.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/checkmemoryleak.cpp b/lib/checkmemoryleak.cpp index 97a8ea249..f98a9c014 100644 --- a/lib/checkmemoryleak.cpp +++ b/lib/checkmemoryleak.cpp @@ -2708,7 +2708,7 @@ void CheckMemoryLeakInClass::check() const Scope *scope = *i; // only check classes and structures - if (scope->type == Scope::eClass) + if (scope->isClassOrStruct()) { std::list::const_iterator var; for (var = scope->varlist.begin(); var != scope->varlist.end(); ++var)