CResourceIterator: Provide a virtual destructor
Prevents any potential undefined behavior from occurring from deleting a derived type from a base class pointer.
This commit is contained in:
parent
621367e120
commit
0eef99f72e
|
@ -20,6 +20,8 @@ public:
|
|||
Next();
|
||||
}
|
||||
|
||||
virtual ~CResourceIterator() = default;
|
||||
|
||||
virtual CResourceEntry* Next()
|
||||
{
|
||||
do
|
||||
|
|
Loading…
Reference in New Issue