Memory leak bug has been fixed. (Thanks to Hassan Hajji)
Buffer overrun bug has been fixed / Code cleanups.
Renamed a variable ("index") to avoid compile-time warning. (Thanks to Emmanuel Blot). Range check improved.
bug fix.
Merge remote branch 'origin/3.4' into android