mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-06-17 20:13:41 +00:00
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…
x
Reference in New Issue
Block a user