diff --git a/lib/check.h b/lib/check.h index 0ba7c8b20..8c9729425 100644 --- a/lib/check.h +++ b/lib/check.h @@ -52,7 +52,9 @@ public: virtual ~Check() { +#ifndef DJGPP instances().remove(this); +#endif } /** List of registered check classes. This is used by Cppcheck to run checks and generate documentation */