release image after comparison

This commit is contained in:
Felix Kratz 2021-12-14 00:45:18 +01:00
parent 80c4a964a7
commit ddceaf3ac4

View file

@ -163,7 +163,7 @@ bool alias_update_image(struct alias* alias) {
if (needs_redraw) {
CGImageRelease(alias->image_ref);
alias->image_ref = tmp_ref;
}
} else CGImageRelease(tmp_ref);
return needs_redraw;
}