Fix memory leak; if Blender quits while in text edit mode, free textbuf
inside of free_editText().
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user