From f927375b7e32c5cea33523202c5210bb394eabab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sat, 28 Nov 2009 19:43:13 +0100 Subject: [PATCH] DJGPP: fix runtime errors because list is destroyed before objects --- lib/check.h | 2 ++ 1 file changed, 2 insertions(+) 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 */