aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2025-04-29 19:29:03 -0400
committerSam Anthony <sam@samanthony.xyz>2025-04-29 19:29:03 -0400
commit7f1e5f1d4ac571149290948002dd2ba7c6e4fc85 (patch)
tree982f080f9710abc3daef02cb90fec72cf46e781c
parent48f7025ef20fad882d5496807ba9e2a93b781f22 (diff)
downloadvolute-7f1e5f1d4ac571149290948002dd2ba7c6e4fc85.zip
canvas: free icon
-rw-r--r--renderer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/renderer.c b/renderer.c
index 72b30b7..509a1ff 100644
--- a/renderer.c
+++ b/renderer.c
@@ -453,6 +453,8 @@ r_remove_canvas(int id) {
expect(id >= 0 && id < canvas_list.idx);
+ r_remove_icon(canvas_list.items[id].icon_id);
+
free_canvas(canvas_list.items[id]);
dst = canvas_list.items + id;