[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [53929] trunk/blender/source/blender/ editors/sculpt_paint/paint_image.c: Fix #33941. We need to free the image editor ibuf too if no image is

Antony Riakiotakis kalast at gmail.com
Sun Jan 20 18:25:47 CET 2013


Revision: 53929
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=53929
Author:   psy-fi
Date:     2013-01-20 17:25:46 +0000 (Sun, 20 Jan 2013)
Log Message:
-----------
Fix #33941. We need to free the image editor ibuf too if no image is
found for cloning.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/sculpt_paint/paint_image.c

Modified: trunk/blender/source/blender/editors/sculpt_paint/paint_image.c
===================================================================
--- trunk/blender/source/blender/editors/sculpt_paint/paint_image.c	2013-01-20 16:58:14 UTC (rev 53928)
+++ trunk/blender/source/blender/editors/sculpt_paint/paint_image.c	2013-01-20 17:25:46 UTC (rev 53929)
@@ -4724,6 +4724,7 @@
 		
 		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;
 		}
 




More information about the Bf-blender-cvs mailing list