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:
authorAntony Riakiotakis <kalast@gmail.com>2013-01-20 21:25:46 +0400
committerAntony Riakiotakis <kalast@gmail.com>2013-01-20 21:25:46 +0400
commit08bcbafe36e28330f98d9143fe4743e69f6d6289 (patch)
treee2470c19fa4766f05dd674dfc012be16bac90803 /source
parent00ef8896fd0b8378e7b01a841bdc2adbd45e8f10 (diff)
Fix #33941. We need to free the image editor ibuf too if no image is
found for cloning.
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/sculpt_paint/paint_image.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_image.c b/source/blender/editors/sculpt_paint/paint_image.c
index 0169078390e..b9e5a082ff8 100644
--- a/source/blender/editors/sculpt_paint/paint_image.c
+++ b/source/blender/editors/sculpt_paint/paint_image.c
@@ -4724,6 +4724,7 @@ static int imapaint_canvas_set(ImagePaintState *s, Image *ima)
if (!ima || !ibuf || !(ibuf->rect || ibuf->rect_float)) {
BKE_image_release_ibuf(ima, ibuf, NULL);
+ BKE_image_release_ibuf(s->image, s->canvas, NULL);
return 0;
}