diff options
author | Janne Karhu <jhkarh@gmail.com> | 2010-09-24 14:49:29 +0400 |
---|---|---|
committer | Janne Karhu <jhkarh@gmail.com> | 2010-09-24 14:49:29 +0400 |
commit | 46bcd48abf19f23a2126ed30e912a95d63786648 (patch) | |
tree | cc3777e483ba4e8afac2c565f68da24e6f1788c9 /source/blender/editors/mesh/loopcut.c | |
parent | 0ed109c5506ca3b7ebafe328095b1fafe7279c41 (diff) |
Changing loopcut count caused memory errors in some cases due to missing null check.
Diffstat (limited to 'source/blender/editors/mesh/loopcut.c')
-rw-r--r-- | source/blender/editors/mesh/loopcut.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/mesh/loopcut.c b/source/blender/editors/mesh/loopcut.c index 174207a71c5..13538a6f218 100644 --- a/source/blender/editors/mesh/loopcut.c +++ b/source/blender/editors/mesh/loopcut.c @@ -252,7 +252,7 @@ static void ringsel_find_edge(tringselOpData *lcd, const bContext *C, ARegion *a { if (lcd->eed) { edgering_sel(lcd, cuts, 0); - } else { + } else if(lcd->edges) { MEM_freeN(lcd->edges); lcd->edges = NULL; lcd->totedge = 0; |