Skip to content

Commit

Permalink
Tweaks to CommandRectAnimation's destructor.
Browse files Browse the repository at this point in the history
  • Loading branch information
Relintai committed Mar 12, 2024
1 parent be686f5 commit 90ae8d4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion servers/rendering/rasterizer.h
Original file line number Diff line number Diff line change
Expand Up @@ -897,10 +897,13 @@ class RasterizerCanvas {
type = TYPE_RECT_ANIMATION;
}

~CommandRectAnimation() {
virtual ~CommandRectAnimation() {
for (int i = 0; i < rects.size(); ++i) {
memdelete(rects[i]);
}

rects.clear();
times.clear();
}
};

Expand Down

0 comments on commit 90ae8d4

Please sign in to comment.