diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2013-01-20 21:25:46 +0400 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2013-01-20 21:25:46 +0400 |
commit | 08bcbafe36e28330f98d9143fe4743e69f6d6289 (patch) | |
tree | e2470c19fa4766f05dd674dfc012be16bac90803 /source | |
parent | 00ef8896fd0b8378e7b01a841bdc2adbd45e8f10 (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.c | 1 |
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; } |