GPencil: Fix unreported memory leak in Fill inverse
There was a memory leak when use inverted fill.
This commit is contained in:
parent
c55d38f00b
commit
ad789c74df
Notes:
blender-bot
2023-02-14 06:19:41 +01:00
Referenced by issue #100749, Blender LTS: Maintenance Task 3.3
|
@ -2681,9 +2681,12 @@ static bool gpencil_find_and_mark_empty_areas(tGPDfill *tgpf)
|
|||
get_pixel(ibuf, i, rgba);
|
||||
if (rgba[3] == 0.0f) {
|
||||
set_pixel(ibuf, i, blue_col);
|
||||
BKE_image_release_ibuf(tgpf->ima, ibuf, NULL);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
BKE_image_release_ibuf(tgpf->ima, ibuf, NULL);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue