2
0
mirror of https://github.com/boostorg/compute.git synced 2026-01-24 17:52:37 +00:00

Merge pull request #780 from jszuppe/fix_memory_leak_746

Fix memory leak
This commit is contained in:
Jakub Szuppe
2018-05-13 22:14:06 +02:00
committed by GitHub
2 changed files with 27 additions and 0 deletions

View File

@@ -65,6 +65,14 @@ struct buffer_iterator_index_expr
{
}
buffer_iterator_index_expr(const buffer_iterator_index_expr& other)
: m_buffer(other.m_buffer.get(), false),
m_index(other.m_index),
m_address_space(other.m_address_space),
m_expr(other.m_expr)
{
}
~buffer_iterator_index_expr()
{
// set buffer to null so that its reference count will