Free fore_canvas_item

Frees fore_canvas_item in cleanup, preventing RID allocation leak.
This commit is contained in:
Leroy Hopson 2024-02-18 13:24:48 +13:00
parent db3564f0cc
commit 2b5ea392bf
No known key found for this signature in database
GPG key ID: D2747312A6DB51AA

View file

@ -546,6 +546,7 @@ void Terminal::cleanup_rendering() {
rs->free_rid(back_canvas_item); rs->free_rid(back_canvas_item);
// Foreground. // Foreground.
rs->free_rid(fore_canvas_item);
rs->free_rid(viewport); rs->free_rid(viewport);
rs->free_rid(canvas); rs->free_rid(canvas);
rs->free_rid(char_canvas_item); rs->free_rid(char_canvas_item);