diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-10-01 18:15:05 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-10-01 18:15:05 +0400 |
commit | 1795bd600b56f04b21d5e3435e4d61b6396e96d9 (patch) | |
tree | d94e0a14189c21ef5e8047f1a9c00ec94d7e65b9 /source/blender/blenkernel/intern | |
parent | b04b8fd0e85f0504bd726e52a5f94413e61012c7 (diff) |
Fixed memory leak in CustomData_interp in cases when sources count is more than
SOURCE_BUF_SIZE and there's no more destination layers in main cycle of this function.
Diffstat (limited to 'source/blender/blenkernel/intern')
-rw-r--r-- | source/blender/blenkernel/intern/customdata.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/customdata.c b/source/blender/blenkernel/intern/customdata.c index ba859cadf92..de55751f2ec 100644 --- a/source/blender/blenkernel/intern/customdata.c +++ b/source/blender/blenkernel/intern/customdata.c @@ -1999,7 +1999,7 @@ void CustomData_interp(const CustomData *source, CustomData *dest, } /* if there are no more dest layers, we're done */ - if (dest_i >= dest->totlayer) return; + if (dest_i >= dest->totlayer) break; /* if we found a matching layer, copy the data */ if (dest->layers[dest_i].type == source->layers[src_i].type) { |