Fix memleak.

This commit is contained in:
Relintai 2024-03-11 20:51:14 +01:00
parent 2c42753ea6
commit 8a8193e8d3

View File

@ -896,6 +896,12 @@ public:
total_time = 0;
type = TYPE_RECT_ANIMATION;
}
~CommandRectAnimation() {
for (int i = 0; i < rects.size(); ++i) {
memdelete(rects[i]);
}
}
};
struct ViewportRender {