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.
Modify code criterion
fixed #3185
Fix bug: deprecate old interface
add "override"
fixed #3185 replace NULL to nullptr.
set z order after reorder
fix warning
fixed #3185  ComponentTest and SceneTest NULL to nullptr.
Merge branch 'develop' into develop_nutty_code_criterion
fixed bugs of widget
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
Merge pull request #4247 from samuele3hu/developCCS

[ci skip]Add deprecated functions of class TextureCache
Merge pull request #4246 from minggo/zorder-fix

[ci skip]Zorder fix
fixed bug of widget
Merge branch 'develop' into develop_nutty_code_criterion
Merge pull request #4251 from nutty898/develop_nutty_code_criterion

[ci skip]Develop nutty code criterion
fixed #3185 support for html5.
Fix bug: add android, fix android can not compile