GPencil: Fix unreported memory leak in Fill inverse
There was a memory leak when use inverted fill.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user