Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
datapack: free all elements on clear (#1251)
* Fixed memory leak When a pack was cleared or destroyed the String and Raw types could cause memory leaks. This happens when "position" is sitting at the end of the vector and can never get past the "if (pos >= elements.length())" statement. This means there is a memory leak in any plugin that clears/destroys a pack with strings and doesn't set the position to length-1 or less beforehand. * datapack: Fix delete op on CDataPackType::Raw. Co-authored-by: Kyle Sanderson <kyle.leet@gmail.com>
- Loading branch information