Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonio Vazquez <blendergit@gmail.com>2022-09-28 20:36:15 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2022-09-30 15:51:14 +0300
commit662ba67210b43af9384ce6eb1d8f9f3e25d1dcd9 (patch)
tree2c30602fd4eea64c512f0694df418b3cd537efca /source/blender/editors/gpencil
parent6c3364052b78b4e61586b30ebb1d6c15e3065a93 (diff)
GPencil: Fix unreported memory leak in Fill inverse
There was a memory leak when use inverted fill.
Diffstat (limited to 'source/blender/editors/gpencil')
-rw-r--r--source/blender/editors/gpencil/gpencil_fill.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/gpencil/gpencil_fill.c b/source/blender/editors/gpencil/gpencil_fill.c
index 5305c764b3a..bc6fa28629f 100644
--- a/source/blender/editors/gpencil/gpencil_fill.c
+++ b/source/blender/editors/gpencil/gpencil_fill.c
@@ -2071,9 +2071,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;
}