Correction to image.destroy
This commit is contained in:
1 parent
c516fb947f
commit
e8485ee7e7
2 files changed
+4
-2
No files matched your search
@@ -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