aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/mem_pool.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mem_pool.cpp b/src/mem_pool.cpp
index 0b5687481..67da88a14 100644
--- a/src/mem_pool.cpp
+++ b/src/mem_pool.cpp
@@ -207,7 +207,7 @@ void Pooling_Allocator::deallocate(void* ptr, u32bit n)
const u32bit block_no = round_up(n, BLOCK_SIZE) / BLOCK_SIZE;
std::vector<Memory_Block>::iterator i =
- std::lower_bound(blocks.begin(), blocks.end(), Memory_Block(ptr));
+ std::lower_bound(blocks.begin(), blocks.end(), ptr);
if(i == blocks.end() || !i->contains(ptr, block_no))
throw Invalid_State("Pointer released to the wrong allocator");