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
path: root/source
diff options
context:
space:
mode:
authorAntonio Vazquez <blendergit@gmail.com>2022-09-28 20:36:15 +0300
committerAntonio Vazquez <blendergit@gmail.com>2022-09-28 20:36:31 +0300
commitad789c74df49f71597252c234e37dce39d34b1ec (patch)
tree5ee68a60b35085220955d08ee0c36800ec0fbe96 /source
parentc55d38f00b8c0e6ae8bda9cc66614afe28fb3fc9 (diff)
GPencil: Fix unreported memory leak in Fill inverse
There was a memory leak when use inverted fill.
Diffstat (limited to 'source')
-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 c99d003faf3..b505d5c27a4 100644
--- a/source/blender/editors/gpencil/gpencil_fill.c
+++ b/source/blender/editors/gpencil/gpencil_fill.c
@@ -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;
}