Fixed #3527 (Internal error. Token::Match called with varid 0. Please report this to Cppcheck developers)

This commit is contained in:
Daniel Marjamäki 2012-01-28 10:00:41 +01:00
parent 01f6bbda62
commit 46b8dc5e16
1 changed files with 2 additions and 0 deletions

View File

@ -2556,6 +2556,8 @@ void CheckMemoryLeakInClass::checkPublicFunctions(const Scope *scope, const Toke
return;
const unsigned int varid = classtok->varId();
if (varid == 0)
return;
// Parse public functions..
// If they allocate member variables, they should also deallocate