Skip to content

Commit

Permalink
Common/HeapArray: Fix mismatched delete/free
Browse files Browse the repository at this point in the history
  • Loading branch information
stenzek committed Oct 21, 2023
1 parent 41bb9fd commit 8ddb0c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/heap_array.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class FixedHeapArray

this_type& operator=(this_type&& move)
{
delete[] m_data;
deallocate();
m_data = move.m_data;
move.m_data = nullptr;
return *this;
Expand Down

0 comments on commit 8ddb0c4

Please sign in to comment.