diff --git a/cactus-graph/src/core.cpp b/cactus-graph/src/core.cpp index 1ad864bb9..b2b2d64ff 100644 --- a/cactus-graph/src/core.cpp +++ b/cactus-graph/src/core.cpp @@ -69,10 +69,9 @@ BufferDesc::BufferDesc(const std::vector& s, Precision prec) } BufferDesc::~BufferDesc() { - if (pooled_data) { delete[] pooled_data; - pooled_data = nullptr; - } + + } BufferDesc::BufferDesc(BufferDesc&& other) noexcept @@ -118,9 +117,7 @@ BufferDesc::BufferDesc(BufferDesc&& other) noexcept BufferDesc& BufferDesc::operator=(BufferDesc&& other) noexcept { if (this != &other) { - if (pooled_data) { - delete[] pooled_data; - } + delete[] pooled_data; shape = std::move(other.shape); total_size = other.total_size;