Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2004-09-24 13:51:16 +0400
committerTon Roosendaal <ton@blender.org>2004-09-24 13:51:16 +0400
commitf3135d0009f04fdaf7dd9d83496c67bba7e1a3fa (patch)
tree957b770601dafa74ef12138a00fcda2c937c1511 /source/blender/src/editmode_undo.c
parentb997c654b1378206f5904f8b5906d504b617b947 (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.c2
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);
}
}