From 8a8193e8d365c0ee9556ad14c607e35e2e56cc4d Mon Sep 17 00:00:00 2001 From: Relintai Date: Mon, 11 Mar 2024 20:51:14 +0100 Subject: [PATCH] Fix memleak. --- servers/rendering/rasterizer.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/servers/rendering/rasterizer.h b/servers/rendering/rasterizer.h index 28675a141..38c8e6973 100644 --- a/servers/rendering/rasterizer.h +++ b/servers/rendering/rasterizer.h @@ -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 {