fix for fix - possible on second loop to use freed memory still.

This commit is contained in:
2012-05-21 10:13:43 +00:00
parent 23d628a54f
commit 14e4ad9302

View File

@@ -721,7 +721,6 @@ void do_rel_key(const int start, int end, const int tot, char *basispoin, Key *k
KeyBlock *kb;
int *ofsp, ofs[3], elemsize, b;
char *cp, *poin, *reffrom, *from, elemstr[8];
char *freefrom = NULL, *freereffrom = NULL;
int poinsize;
/* currently always 0, in future key_pointer_size may assign */
@@ -754,6 +753,7 @@ void do_rel_key(const int start, int end, const int tot, char *basispoin, Key *k
if (!(kb->flag & KEYBLOCK_MUTE) && icuval != 0.0f && kb->totelem == tot) {
KeyBlock *refb;
float weight, *weights = kb->weights;
char *freefrom = NULL, *freereffrom = NULL;
/* reference now can be any block */
refb = BLI_findlink(&key->block, kb->relative);