gg: fix leak in draw_image_with_config

pull/12222/head
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
1 changed files with 1 additions and 1 deletions

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
}