[Bf-blender-cvs] [920fa0f] master: Fix double-free on copied Text compiled py-code

Campbell Barton noreply at git.blender.org
Mon Apr 27 17:19:26 CEST 2015


Commit: 920fa0f963b8e3bd89e213ea849e09df002d2676
Author: Campbell Barton
Date:   Tue Apr 28 00:10:34 2015 +1000
Branches: master
https://developer.blender.org/rB920fa0f963b8e3bd89e213ea849e09df002d2676

Fix double-free on copied Text compiled py-code

===================================================================

M	source/blender/blenkernel/intern/text.c

===================================================================

diff --git a/source/blender/blenkernel/intern/text.c b/source/blender/blenkernel/intern/text.c
index 9f441b4..2c58873 100644
--- a/source/blender/blenkernel/intern/text.c
+++ b/source/blender/blenkernel/intern/text.c
@@ -473,6 +473,7 @@ Text *BKE_text_copy(Main *bmain, Text *ta)
 	
 	BLI_listbase_clear(&tan->lines);
 	tan->curl = tan->sell = NULL;
+	tan->compiled = NULL;
 	
 	tan->nlines = ta->nlines;




More information about the Bf-blender-cvs mailing list