[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [35914] trunk/blender/source/blender/ render/intern/source/convertblender.c: fix for a crash when loading a new blend file which had a scene with the same name as the old one , the freed backbuffer image from the previous blend file would get reused.

Campbell Barton ideasman42 at gmail.com
Thu Mar 31 07:20:48 CEST 2011


Revision: 35914
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=35914
Author:   campbellbarton
Date:     2011-03-31 05:20:48 +0000 (Thu, 31 Mar 2011)
Log Message:
-----------
fix for a crash when loading a new blend file which had a scene with the same name as the old one, the freed backbuffer image from the previous blend file would get reused.
also NULL the bakebuf just incase its accessed in future though at the moment this isnt causing any problems.

Modified Paths:
--------------
    trunk/blender/source/blender/render/intern/source/convertblender.c

Modified: trunk/blender/source/blender/render/intern/source/convertblender.c
===================================================================
--- trunk/blender/source/blender/render/intern/source/convertblender.c	2011-03-31 04:55:57 UTC (rev 35913)
+++ trunk/blender/source/blender/render/intern/source/convertblender.c	2011-03-31 05:20:48 UTC (rev 35914)
@@ -4636,7 +4636,10 @@
 	
 	re->totvlak=re->totvert=re->totstrand=re->totlamp=re->tothalo= 0;
 	re->i.convertdone= 0;
-	
+
+	re->backbuf= NULL;
+	re->bakebuf= NULL;
+
 	if(re->scene)
 		if(re->scene->r.scemode & R_FREE_IMAGE)
 			if((re->r.scemode & R_PREVIEWBUTS)==0)




More information about the Bf-blender-cvs mailing list