Fix #33941. We need to free the image editor ibuf too if no image is
found for cloning.
This commit is contained in:
parent
00ef8896fd
commit
08bcbafe36
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user