From f61927d946c17dc0c48e311861f40f115ff36854 Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Wed, 19 Aug 2020 17:27:46 +0200 Subject: BLI: improve leak detection in tests This actually found a bug in my previous commit. --- source/blender/blenlib/BLI_vector.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/blenlib/BLI_vector.hh') 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; } -- cgit v1.2.3