axmol/cocos/base
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
..
CCAsyncTaskPool.cpp update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
CCAsyncTaskPool.h metal support for cocos2d-x (#19305) 2019-01-18 15:08:25 +08:00
CCAutoreleasePool.cpp update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
CCAutoreleasePool.h metal support for cocos2d-x (#19305) 2019-01-18 15:08:25 +08:00
CCConfiguration.cpp Feature/update device info (#19712) 2019-05-15 18:26:00 -07:00
CCConfiguration.h remove opengl codes (#19797) 2019-06-05 02:58:33 -07:00
CCConsole.cpp Optimize calls to std::string::find() and friends (#19624) 2019-04-21 18:44:19 -07:00
CCConsole.h Adds support for executing sequential commands separated by a delimiter (#18686) 2018-03-08 10:51:21 +08:00
CCController-android.cpp ClassLoader.loadClass use 'Binary names'. (#19011) 2018-09-10 15:06:19 +08:00
CCController-apple.mm fix reorder warning (#18819) 2018-05-14 10:34:56 +08:00
CCController-linux-win32.cpp add another xbox 360 configuration (#19032) 2018-09-10 09:52:41 +08:00
CCController.cpp update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
CCController.h update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
CCData.cpp [bugfix] fix test case crash (#19573) 2019-04-03 18:41:17 -07:00
CCData.h cocos2d::Data: prevent use after free. (#19034) 2018-09-14 14:36:47 +08:00
CCDirector.cpp sync 19661: Clear the scene stack in the expected order (#19935) 2019-07-19 16:53:20 +08:00
CCDirector.h Feature/fix tile map (#19883) 2019-06-30 11:36:52 +08:00
CCEnumClass.h metal support for cocos2d-x (#19305) 2019-01-18 15:08:25 +08:00
CCEvent.cpp update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
CCEvent.h update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
CCEventAcceleration.cpp update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
CCEventAcceleration.h update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
CCEventController.cpp update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
CCEventController.h update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
CCEventCustom.cpp update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
CCEventCustom.h update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
CCEventDispatcher.cpp update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
CCEventDispatcher.h update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
CCEventFocus.cpp update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
CCEventFocus.h update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
CCEventKeyboard.cpp update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
CCEventKeyboard.h update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
CCEventListener.cpp update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
CCEventListener.h update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
CCEventListenerAcceleration.cpp update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
CCEventListenerAcceleration.h update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
CCEventListenerController.cpp metal support for cocos2d-x (#19305) 2019-01-18 15:08:25 +08:00
CCEventListenerController.h update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
CCEventListenerCustom.cpp update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
CCEventListenerCustom.h update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
CCEventListenerFocus.cpp update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
CCEventListenerFocus.h update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
CCEventListenerKeyboard.cpp update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
CCEventListenerKeyboard.h update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
CCEventListenerMouse.cpp update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
CCEventListenerMouse.h Fix include guard in CCEventListenerMouse.h (#18872) 2018-06-08 17:13:38 +08:00
CCEventListenerTouch.cpp update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
CCEventListenerTouch.h update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
CCEventMouse.cpp update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
CCEventMouse.h update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
CCEventTouch.cpp update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
CCEventTouch.h update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
CCEventType.h update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
CCGameController.h update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
CCIMEDelegate.h update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
CCIMEDispatcher.cpp update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
CCIMEDispatcher.h update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
CCMap.h update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
CCNS.cpp update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
CCNS.h update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
CCNinePatchImageParser.cpp Feature/fix mipmap issues (#19753) 2019-06-02 18:39:51 -07:00
CCNinePatchImageParser.h update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
CCProfiling.cpp metal support for cocos2d-x (#19305) 2019-01-18 15:08:25 +08:00
CCProfiling.h metal support for cocos2d-x (#19305) 2019-01-18 15:08:25 +08:00
CCProperties.cpp Optimize calls to std::string::find() and friends (#19624) 2019-04-21 18:44:19 -07:00
CCProperties.h update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
CCProtocols.h fix outdated documentation [ci skip] (#19618) (#19929) 2019-07-19 10:19:13 +08:00
CCRef.cpp metal support for cocos2d-x (#19305) 2019-01-18 15:08:25 +08:00
CCRef.h metal support for cocos2d-x (#19305) 2019-01-18 15:08:25 +08:00
CCRefPtr.h update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
CCScheduler.cpp update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
CCScheduler.h metal support for cocos2d-x (#19305) 2019-01-18 15:08:25 +08:00
CCScriptSupport.cpp update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
CCScriptSupport.h metal support for cocos2d-x (#19305) 2019-01-18 15:08:25 +08:00
CCStencilStateManager.cpp remove vertex step mode (#19921) 2019-07-17 13:59:37 +08:00
CCStencilStateManager.h fix stencil issue (#19910) 2019-07-10 09:56:55 +08:00
CCTouch.cpp update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
CCTouch.h update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
CCUserDefault-android.cpp metal support for cocos2d-x (#19305) 2019-01-18 15:08:25 +08:00
CCUserDefault-apple.mm metal support for cocos2d-x (#19305) 2019-01-18 15:08:25 +08:00
CCUserDefault.cpp fix memory leak in CCUserDefault (#19853) (#19947) 2019-07-22 09:37:21 +08:00
CCUserDefault.h metal support for cocos2d-x (#19305) 2019-01-18 15:08:25 +08:00
CCValue.cpp update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
CCValue.h update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
CCVector.h update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
CMakeLists.txt fix base/CMakeLists.txt (#19575) (#19728) 2019-05-17 01:34:49 -07:00
ObjectFactory.cpp update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
ObjectFactory.h update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
TGAlib.cpp update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
TGAlib.h update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
ZipUtils.cpp Optimize calls to std::string::find() and friends (#19624) 2019-04-21 18:44:19 -07:00
ZipUtils.h metal support for cocos2d-x (#19305) 2019-01-18 15:08:25 +08:00
atitc.cpp update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
atitc.h update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
base64.cpp update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
base64.h update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
ccCArray.cpp update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
ccCArray.h update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
ccConfig.h Enable navmesh (#19530) 2019-03-20 14:34:35 +08:00
ccConstants.h change Texture2D::TexParams fields type 2019-03-12 16:53:28 +08:00
ccFPSImages.c update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
ccFPSImages.h metal support for cocos2d-x (#19305) 2019-01-18 15:08:25 +08:00
ccMacros.h [Change] the CC_64BITS macro to 64-bit decision. (#19723) (#19941) 2019-07-22 09:36:10 +08:00
ccRandom.cpp update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
ccRandom.h update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
ccTypes.cpp remove opengl codes (#19797) 2019-06-05 02:58:33 -07:00
ccTypes.h Feature/fix mipmap issues (#19753) 2019-06-02 18:39:51 -07:00
ccUTF8.cpp metal support for cocos2d-x (#19305) 2019-01-18 15:08:25 +08:00
ccUTF8.h metal support for cocos2d-x (#19305) 2019-01-18 15:08:25 +08:00
ccUtils.cpp sync 19634 and fix conflict (#19930) 2019-07-19 11:57:11 +08:00
ccUtils.h sync 19634 and fix conflict (#19930) 2019-07-19 11:57:11 +08:00
etc1.cpp Squashed commit of the following: 2014-04-30 19:09:13 -07:00
etc1.h [ci skip]Update comments 2015-03-24 20:23:51 +08:00
firePngData.h update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
pvr.cpp Fixes 1605 include path in 541 files 2016-03-20 21:53:44 +08:00
pvr.h Copyright & small fixes 2014-07-22 15:49:38 +04:00
s3tc.cpp update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
s3tc.h update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
uthash.h [ci skip]Update comments 2015-03-24 20:23:51 +08:00
utlist.h [ci skip]Update comments 2015-03-24 20:23:51 +08:00