DJGPP: fix runtime errors because list is destroyed before objects

This commit is contained in:
Daniel Marjamäki 2009-11-28 19:43:13 +01:00
parent a57af3b3e9
commit f927375b7e
1 changed files with 2 additions and 0 deletions

View File

@ -52,7 +52,9 @@ public:
virtual ~Check() virtual ~Check()
{ {
#ifndef DJGPP
instances().remove(this); instances().remove(this);
#endif
} }
/** List of registered check classes. This is used by Cppcheck to run checks and generate documentation */ /** List of registered check classes. This is used by Cppcheck to run checks and generate documentation */