axmol/cocos/base
Ricardo Quesada be64dd97cf replaces `delete[]` with `free()` in C-based API
API that returns a newly allocated buffer as an output argument (not return value) are error-prone.

- Users forget to release the newly allocated buffer
- Or the call `delete` instead of `delete[]`

But some of those API need to call `realloc` on the buffer.
But `realloc` is only valid if the buffer was previously allocated with `malloc`.
If a buffer needs to be re-allocated using a C++ API, then `std::vector<char*>` should be used instead...

So, this patch does:

- Migrates the API from  `new []` / `delete[]` to  `malloc()` / `free()`
- Fixes all the memory issues: incorrect deallocs and memory leaks
- Updates the documentation
- And fixes misc issues with the API: removes `cc` from the ZipUtils class.
2013-11-11 18:09:47 -08:00
..
CCAffineTransform.cpp issue #2905: helloworld build ok on android 2013-10-14 14:01:00 +08:00
CCAffineTransform.h issue #2905: helloworld build ok on android 2013-10-14 14:01:00 +08:00
CCArray.cpp Fixes some compiler warnings 2013-11-04 16:31:36 -08:00
CCArray.h Fixes some compiler warnings 2013-11-04 16:31:36 -08:00
CCAutoreleasePool.cpp issue #2905: helloworld build ok on android 2013-10-14 14:01:00 +08:00
CCAutoreleasePool.h issue #2905: helloworld build ok on android 2013-10-14 14:01:00 +08:00
CCBool.h issue #2905: helloworld build ok on android 2013-10-14 14:01:00 +08:00
CCData.cpp issue #2905: helloworld build ok on android 2013-10-14 14:01:00 +08:00
CCData.h issue #2905: helloworld build ok on android 2013-10-14 14:01:00 +08:00
CCDataVisitor.cpp issue #2905: helloworld build ok on android 2013-10-14 14:01:00 +08:00
CCDataVisitor.h issue #2905: helloworld build ok on android 2013-10-14 14:01:00 +08:00
CCDictionary.cpp issue #2905: helloworld build ok on android 2013-10-14 14:01:00 +08:00
CCDictionary.h issue #2905: helloworld build ok on android 2013-10-14 14:01:00 +08:00
CCDouble.h issue #2905: helloworld build ok on android 2013-10-14 14:01:00 +08:00
CCFloat.h issue #2905: helloworld build ok on android 2013-10-14 14:01:00 +08:00
CCGeometry.cpp use float instead for create point object 2013-11-08 14:13:39 +08:00
CCGeometry.h Merge pull request #4111 from boyu0/iss2771_physical 2013-11-07 18:51:15 -08:00
CCInteger.h issue #2905: helloworld build ok on android 2013-10-14 14:01:00 +08:00
CCNS.cpp issue #2905: helloworld build ok on android 2013-10-14 14:01:00 +08:00
CCNS.h issue #2905: helloworld build ok on android 2013-10-14 14:01:00 +08:00
CCObject.cpp issue #2905: helloworld build ok on android 2013-10-14 14:01:00 +08:00
CCObject.h issue #2771: enhance Listener use EventListener mechanism 2013-11-01 14:50:06 +08:00
CCPlatformConfig.h issue #2905: adjust folder structure 2013-10-12 15:25:45 +08:00
CCPlatformMacros.h issue #2905: adjust folder structure 2013-10-12 15:25:45 +08:00
CCSet.cpp issue #2905: helloworld build ok on android 2013-10-14 14:01:00 +08:00
CCSet.h issue #2905: helloworld build ok on android 2013-10-14 14:01:00 +08:00
CCString.cpp replaces `delete[]` with `free()` in C-based API 2013-11-11 18:09:47 -08:00
CCString.h issue #2905: helloworld build ok on android 2013-10-14 14:01:00 +08:00
CMakeLists.txt [cmake] output lib to root/lib 2013-11-04 21:03:08 +08:00
atitc.cpp issue #2770: fix some warning 2013-11-11 12:49:38 +08:00
atitc.h issue #2905: helloworld build ok on android 2013-10-14 14:01:00 +08:00
etc1.cpp issue #2905: helloworld build ok on android 2013-10-14 14:01:00 +08:00
etc1.h issue #2905: helloworld build ok on android 2013-10-14 14:01:00 +08:00
s3tc.cpp issue #2770: fix some warning 2013-11-11 12:49:38 +08:00
s3tc.h issue #2905: helloworld build ok on android 2013-10-14 14:01:00 +08:00