Very bad typo, causing wrong blocks to be freed when the undostack is

full. Gives crashes on exit...
This commit is contained in:
2004-09-24 09:51:16 +00:00
parent b997c654b1
commit f3135d0009

View File

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