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.
Fix bug: deprecate old interface
Merge branch 'develop' into free_instead_of_delete

# By minggo (12) and others
# Via minggo (18) and others
* develop: (78 commits)
  [AUTO] : updating submodule reference to latest autogenerated bindings
  Update CHANGELOG[ci skip]
  Update AUTHORS [ci skip]
  fix bug: cccolor to jsval function has error in jsb
  [ci skip]
  [ci skip]
  [ci skip]
  [ci skip]
  [ci skip]
  C++11: NULL -> nullptr
  [ci skip]
  Fix: UserDefault::createXMLFile with correct XML definition.
  [ci skip]
  [ci skip]
  [ci skip]
  Fix bug: rename const with under line seperator
  [AUTO] : updating submodule reference to latest autogenerated bindings
  Fix bug: Z fighting on TransitionScenePageTurn
  Fixed bugs
  Modify reader and fixed bugs
  ...

Conflicts:
	cocos/editor-support/cocostudio/CCSGUIReader.cpp
Fix bug: use free() in imageCommon_cpp.h
Fix bug: add android, fix android can not compile
Merge branch 'develop' into free_instead_of_delete

# By CaiWenzhi (4) and others
# Via minggo (7) and others
* develop:
  fix asynchronize loading bug
  [AUTO] : updating submodule reference to latest autogenerated bindings
  fixed #3185 support for html5.
  fixed bug of widget
  fixed bugs of widget
  fixed #3185  ComponentTest and SceneTest NULL to nullptr.
  Add deprecated functions of class TextureCache
  fix warning
  set z order after reorder
  fixed #3185 replace NULL to nullptr.
  add "override"
  fixed #3185
  Modify code criterion

Conflicts:
	cocos/editor-support/cocostudio/CCSGUIReader.cpp
	cocos/editor-support/cocostudio/CCSSceneReader.cpp
Merge branch 'develop' into free_instead_of_delete
Merge pull request #4262 from dabingnn/free_instead_of_delete

[ci skip]Free instead of delete
Modify layout
Modify template of lua ios_mac config and some bugs
Merge branch 'develop' of https://github.com/cocos2d/cocos2d-x into developCCS
Merge pull request #4268 from nutty898/develop_nutty_modify_layout

[ci skip]Modify layout
issue #2854:Disable CDT Builder on Eclipse
Modify relative layout
Merge branch 'develop' of https://github.com/cocos2d/cocos2d-x into developCCS
Merge pull request #4272 from samuele3hu/developCCS

[ci skip]Modify template of lua ios_mac config and some bugs
fix CCBReader magic bytes compare bug which cause CocosBuilderTest turns black
Merge pull request #4271 from nutty898/develop_nutty_modify_relativelayout

[ci skip]Modify relative layout
Merge pull request #4269 from Dhilan007/di2854

[ci skip]issue #2854:Disable CDT Builder on Eclipse
Merge pull request #4273 from boyu0/fix_ccbreader_magic_bits_compare_bug

[ci skip]fix CCBReader magic bytes compare bug.