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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user