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:
authorJacques Lucke <jacques@blender.org>2020-08-19 18:27:46 +0300
committerJacques Lucke <jacques@blender.org>2020-08-19 18:27:58 +0300
commitf61927d946c17dc0c48e311861f40f115ff36854 (patch)
treea82ba3ad0ad18424798eb06c76bcabb4ef6a4004 /source/blender/blenlib/BLI_vector.hh
parent1dafa87eb5ec355148e8cff86dd78e2727d34044 (diff)
BLI: improve leak detection in tests
This actually found a bug in my previous commit.
Diffstat (limited to 'source/blender/blenlib/BLI_vector.hh')
-rw-r--r--source/blender/blenlib/BLI_vector.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/BLI_vector.hh b/source/blender/blenlib/BLI_vector.hh
index 06bafce2dd0..392b6cd9f47 100644
--- a/source/blender/blenlib/BLI_vector.hh
+++ b/source/blender/blenlib/BLI_vector.hh
@@ -589,7 +589,7 @@ class Vector {
catch (...) {
/* Destruct all values that have been moved already. */
destruct_n(begin_ + dst_index + 1, i);
- end_ = begin_ + src_index;
+ end_ = begin_ + src_index + 1;
UPDATE_VECTOR_SIZE(this);
throw;
}