diff options
| author | Ginger Bill <bill@gingerbill.org> | 2017-01-28 20:16:18 +0000 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2017-01-28 20:16:18 +0000 |
| commit | e86c990b75bb30f0116430453b42a59317e3fead (patch) | |
| tree | 2645005099bd2cf744299d6a3538408ed5728d39 /code/punity.odin | |
| parent | 31aacd5bf435224c7d8f9b19359175d3e6d25660 (diff) | |
Overloaded `free`; 3 dotted ellipsisv0.0.6a
Diffstat (limited to 'code/punity.odin')
| -rw-r--r-- | code/punity.odin | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/code/punity.odin b/code/punity.odin index d5ef3ec19..838bf2638 100644 --- a/code/punity.odin +++ b/code/punity.odin @@ -398,8 +398,7 @@ run :: proc(user_init, user_step: proc(c: ^Core)) { ShowWindow(win32_window, SW_SHOW); window_buffer := new_slice(u32, CANVAS_WIDTH * CANVAS_HEIGHT); - assert(window_buffer.data != nil); - defer free(window_buffer.data); + defer free(window_buffer); for i := 0; i < window_buffer.count; i += 1 { |