AndrewandKyle Sanderson d044b13ce4 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 <[email protected]>
2020-04-27 18:09:13 -07:00
2019-05-27 17:15:04 +01:00
2018-08-13 23:03:48 +01:00
2019-09-30 22:43:18 -07:00
2019-12-28 12:07:36 -08:00
2011-04-13 19:05:41 -05:00
2019-10-18 21:07:36 -07:00

SourceMod

General

Development

Contact

  • Connect with us on GameSurge IRC in #sourcemod
  • Alternatively feel free to join our Discord server

License

SourceMod is licensed under the GNU General Public License version 3. Special exceptions are outlined in the LICENSE.txt file inside of the licenses folder.

S
Description
No description provided
Readme
45 MiB
Languages
C 59.7%
C++ 18%
HTML 4.8%
Roff 3.8%
SourcePawn 3.4%
Other 10%