From d74e4b427d873b56bf6069c674107197fc44774b Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sat, 14 May 2022 15:16:56 +0100 Subject: [PATCH] Remove `bool` return on `image.destroy` --- core/image/general_loader.odin | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/image/general_loader.odin b/core/image/general_loader.odin index 21a662967..36629c39e 100644 --- a/core/image/general_loader.odin +++ b/core/image/general_loader.odin @@ -45,9 +45,9 @@ load_from_file :: proc(filename: string, options := Options{}, allocator := cont } } -destroy :: proc(img: ^Image, allocator := context.allocator) -> bool { +destroy :: proc(img: ^Image, allocator := context.allocator) { if img == nil { - return true + return } context.allocator = allocator destroyer := _internal_destroyers[img.which] @@ -58,5 +58,4 @@ destroy :: proc(img: ^Image, allocator := context.allocator) -> bool { bytes.buffer_destroy(&img.pixels) free(img) } - return true } \ No newline at end of file