mirror of https://github.com/axmolengine/axmol.git
b7a6b77789
fastSet makes the Data object managing a new memory area in [bytes, bytes + size), but it doesn't releasing the old data it managed. Failure to release the old data causes memory leak. The default constructed Data manages null memory, so calling fastSet on it is fine. Because `Data ret = defaultValue;` malloc new memory, we might have better performance without it. |
||
---|---|---|
.. | ||
2d | ||
3d | ||
audio | ||
base | ||
editor-support | ||
math | ||
navmesh | ||
network | ||
physics | ||
physics3d | ||
platform | ||
renderer | ||
scripting | ||
ui | ||
CMakeLists.txt | ||
cocos2d.cpp | ||
cocos2d.h | ||
precheader.cpp | ||
precheader.h |