Skip to content

Commit ac32a11

Browse files
committed
Reverted .../LeafBuffer.h change to avoid possible negative implacations
Signed-off-by: Lucas Baraya <[email protected]>
1 parent 4189039 commit ac32a11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openvdb/openvdb/tree/LeafBuffer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ template<typename T, Index Log2Dim>
330330
inline bool
331331
LeafBuffer<T, Log2Dim>::deallocate()
332332
{
333-
if (!this->isOutOfCore()) {
333+
if (mData != nullptr && !this->isOutOfCore()) {
334334
delete[] mData;
335335
mData = nullptr;
336336
return true;

0 commit comments

Comments
 (0)