1
1

GPencil: Fix unreported memory leak in Fill inverse

There was a memory leak when use inverted fill.
This commit is contained in:
2022-09-28 19:36:15 +02:00
parent c55d38f00b
commit ad789c74df

View File

@@ -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;
}