Tweaks to CommandRectAnimation's destructor.

This commit is contained in:
Relintai 2024-03-12 06:15:35 +01:00
parent be686f5db4
commit 90ae8d4791

View File

@ -897,10 +897,13 @@ public:
type = TYPE_RECT_ANIMATION;
}
~CommandRectAnimation() {
virtual ~CommandRectAnimation() {
for (int i = 0; i < rects.size(); ++i) {
memdelete(rects[i]);
}
rects.clear();
times.clear();
}
};