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:
Lioncash 2020-06-09 05:14:12 -04:00
parent 621367e120
commit 0eef99f72e
1 changed files with 2 additions and 0 deletions

View File

@ -20,6 +20,8 @@ public:
Next();
}
virtual ~CResourceIterator() = default;
virtual CResourceEntry* Next()
{
do