1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

autofree: minor fixes; skip in consts

This commit is contained in:
Alexander Medvednikov
2020-11-21 19:07:47 +01:00
parent ad940ff40e
commit 2afb9b30e9
4 changed files with 66 additions and 42 deletions

View File

@@ -57,7 +57,7 @@ pub fn load_from_memory(buf byteptr, bufsize int) ?Image {
}
pub fn (img Image) free() {
pub fn (img &Image) free() {
C.stbi_image_free(img.data)
}