axmol/cocos
minggo b7a6b77789
fix memory leak in CCUserDefault (#19853) (#19947)
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.
2019-07-22 09:37:21 +08:00
..
2d refactor CCScene (#19767) (#19944) 2019-07-22 09:36:38 +08:00
3d sync 19756: refactor CCBundle3DData (#19942) 2019-07-22 09:36:24 +08:00
audio refactor AudioEngine-Linux (#19822) (#19946) 2019-07-22 09:37:07 +08:00
base fix memory leak in CCUserDefault (#19853) (#19947) 2019-07-22 09:37:21 +08:00
editor-support sync 19722: fix assign nullptr to std::string (#19940) 2019-07-22 09:35:57 +08:00
math remove opengl codes (#19797) 2019-06-05 02:58:33 -07:00
navmesh remove vertex step mode (#19921) 2019-07-17 13:59:37 +08:00
network Optimize calls to std::string::find() and friends (#19624) 2019-04-21 18:44:19 -07:00
physics remove opengl codes (#19797) 2019-06-05 02:58:33 -07:00
physics3d remove vertex step mode (#19921) 2019-07-17 13:59:37 +08:00
platform sync 19811: android_allowBackup2 (#19945) 2019-07-22 09:36:51 +08:00
renderer fix outdated documentation [ci skip] (#19618) (#19929) 2019-07-19 10:19:13 +08:00
scripting fix for #19713 (#19714) (#19939) 2019-07-22 09:35:44 +08:00
ui remove opengl codes (#19797) 2019-06-05 02:58:33 -07:00
CMakeLists.txt Update CMakeLists.txt 2019-07-04 09:48:45 +08:00
cocos2d.cpp change version to beta 2019-06-06 18:16:55 +08:00
cocos2d.h change version to beta 2019-06-06 18:16:55 +08:00
precheader.cpp Speed up windows build (#18662) 2018-01-29 16:36:38 +08:00
precheader.h Speed up windows build (#18662) 2018-01-29 16:36:38 +08:00