DJGPP: fix runtime errors because list is destroyed before objects
This commit is contained in:
parent
a57af3b3e9
commit
f927375b7e
|
@ -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 */
|
||||||
|
|
Loading…
Reference in New Issue