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:
authorJanne Karhu <jhkarh@gmail.com>2010-09-24 14:49:29 +0400
committerJanne Karhu <jhkarh@gmail.com>2010-09-24 14:49:29 +0400
commit46bcd48abf19f23a2126ed30e912a95d63786648 (patch)
treecc3777e483ba4e8afac2c565f68da24e6f1788c9 /source/blender/editors/mesh/loopcut.c
parent0ed109c5506ca3b7ebafe328095b1fafe7279c41 (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.c2
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;