diff options
author | Nicholas Bishop <nicholasbishop@gmail.com> | 2006-11-13 21:45:57 +0300 |
---|---|---|
committer | Nicholas Bishop <nicholasbishop@gmail.com> | 2006-11-13 21:45:57 +0300 |
commit | de7322f96d4a9d672636b9f76b37969645b874f3 (patch) | |
tree | 0993c691529bcd0d82f4dae98e293c60a9cbb750 | |
parent | ef56538c629209d6e491f0358c88bd9af0da52d8 (diff) |
Added missing null check when freeing multires level 1 dverts
-rw-r--r-- | source/blender/src/multires.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/src/multires.c b/source/blender/src/multires.c index a0522a53308..eb50854b5a2 100644 --- a/source/blender/src/multires.c +++ b/source/blender/src/multires.c @@ -566,7 +566,8 @@ void multires_free(Mesh *me) MultiresLevel* lvl= me->mr->levels.first; /* Free the first-level data */ - free_dverts(me->mr->dverts, lvl->totvert); + if(lvl) + free_dverts(me->mr->dverts, lvl->totvert); while(lvl) { multires_free_level(lvl); |