diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-03-01 13:14:20 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-03-01 13:14:20 +0400 |
commit | 973771723414e49709c100b1c3a48c7bdeb51cdd (patch) | |
tree | d8f1aaf5ef07cc4b748e5176039970771379ac3a /source/blender/editors/transform | |
parent | 9742a6f6cb053ff45060f4bb5f5fa96084b7f5b5 (diff) |
Fix for some unlikely memory leaks, remove redundant checks
Diffstat (limited to 'source/blender/editors/transform')
-rw-r--r-- | source/blender/editors/transform/transform_conversions.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source/blender/editors/transform/transform_conversions.c b/source/blender/editors/transform/transform_conversions.c index dabe4c684ab..beb49a5443e 100644 --- a/source/blender/editors/transform/transform_conversions.c +++ b/source/blender/editors/transform/transform_conversions.c @@ -2636,7 +2636,12 @@ static void createTransUVs(bContext *C, TransInfo *t) } /* note: in prop mode we need at least 1 selected */ - if (countsel == 0) return; + if (countsel == 0) { + if (propconnected) { + MEM_freeN(island_enabled); + } + return; + } t->total = (propmode) ? count : countsel; t->data = MEM_callocN(t->total * sizeof(TransData), "TransObData(UV Editing)"); |