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

gg: fix leak in draw_image_with_config

This commit is contained in:
Delyan Angelov 2021-10-17 11:28:10 +03:00
parent 98b2bdb410
commit 1313dcf601
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -117,7 +117,7 @@ pub fn (ctx &Context) draw_image_with_config(config DrawImageConfig) {
return
}
img := ctx.image_cache[id]
img := &ctx.image_cache[id]
if !img.simg_ok {
return
}