mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Correction to image.destroy
This commit is contained in:
@@ -52,7 +52,9 @@ destroy :: proc(img: ^Image, allocator := context.allocator) -> bool {
|
||||
destroyer := _internal_destroyers[img.which]
|
||||
if destroyer != nil {
|
||||
destroyer(img)
|
||||
} else {
|
||||
assert(img.metadata == nil)
|
||||
free(img)
|
||||
}
|
||||
free(img)
|
||||
return true
|
||||
}
|
||||
Reference in New Issue
Block a user