Fix double-free on copied Text compiled py-code

This commit is contained in:
Campbell Barton 2015-04-28 00:10:34 +10:00
parent 84db9fdf4d
commit 920fa0f963
1 changed files with 1 additions and 0 deletions

View File

@ -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;