Fix #33941. We need to free the image editor ibuf too if no image is

found for cloning.
This commit is contained in:
Antony Riakiotakis 2013-01-20 17:25:46 +00:00
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;
}