Commit Graph
7 Commits
Author SHA1 Message Date
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
Andrew f67e4ce610 Making rename's LogAction message consistent... (#696)
with the other plugin's messages.
2017-09-26 20:22:38 -04:00
Andrew f289799c57 Making gravity's LogAction message consistent... (#695)
with the other plugin's messages.
2017-09-26 20:22:30 -04:00
Andrew aac279322b Making blind's LogAction message consistent... (#697)
with the other plugin's messages.
2017-09-26 20:22:02 -04:00
Andrew 54565c92f7 Add target arg to LogAction in basechat sm_psay. (#690) 2017-09-23 10:45:41 -07:00
Andrew 3022b665dd Initialized the mask variable.
Moved the FPERM_ defines into the .cpp and removed the header file.
2014-06-27 16:43:51 -04:00
Andrew f3299b2c8c Added a new function SetFilePermissions to set permissions of a file. I'm not sure about the Windows implementation. See this feature request: https://bugs.alliedmods.net/show_bug.cgi?id=6152 2014-06-21 00:45:07 -04:00