Fix memory leak; if Blender quits while in text edit mode, free textbuf

inside of free_editText().
This commit is contained in:
Ken Hughes
2005-12-07 05:41:58 +00:00
parent 4cf83c2c14
commit b558edd629

View File

@@ -1157,6 +1157,7 @@ void free_editText(void)
{
if(oldstr) MEM_freeN(oldstr);
if(oldstrinfo) MEM_freeN(oldstrinfo);
if(textbuf) MEM_freeN(textbuf);
textbuf = oldstr = NULL;
textbufinfo = oldstrinfo = NULL;
textediting= 0;