diff options
author | Ton Roosendaal <ton@blender.org> | 2004-09-24 13:51:16 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2004-09-24 13:51:16 +0400 |
commit | f3135d0009f04fdaf7dd9d83496c67bba7e1a3fa (patch) | |
tree | 957b770601dafa74ef12138a00fcda2c937c1511 /source/blender/src/editmode_undo.c | |
parent | b997c654b1378206f5904f8b5906d504b617b947 (diff) |
Very bad typo, causing wrong blocks to be freed when the undostack is
full. Gives crashes on exit...
Diffstat (limited to 'source/blender/src/editmode_undo.c')
-rw-r--r-- | source/blender/src/editmode_undo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/src/editmode_undo.c b/source/blender/src/editmode_undo.c index 4898c15d669..ef7bda0b51f 100644 --- a/source/blender/src/editmode_undo.c +++ b/source/blender/src/editmode_undo.c @@ -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); } } |