zephr/game: fix few memory leaks (and introduced a big one). spawn particles when tiles merge

This commit is contained in:
2024-01-27 04:05:00 +02:00
parent 98c3a0f8af
commit 292f0058d5
8 changed files with 194 additions and 24 deletions
+1
View File
@@ -119,6 +119,7 @@ x11_assign_window_icon :: proc(icon_path: cstring, window_title: cstring) {
target_size := 2 + icon_width * icon_height
data := make([]u64, target_size)
defer delete(data)
// first two elements are width and height
data[0] = cast(u64)icon_width