Very bad typo, causing wrong blocks to be freed when the undostack is
full. Gives crashes on exit...
This commit is contained in:
@@ -166,7 +166,7 @@ void undo_editmode_push(char *name, void (*freedata)(void *),
|
||||
while(undobase.first!=uel) {
|
||||
UndoElem *first= undobase.first;
|
||||
BLI_remlink(&undobase, first);
|
||||
uel->freedata(uel->undodata);
|
||||
uel->freedata(first->undodata);
|
||||
MEM_freeN(first);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user