Use SmartLocalRef to automatically release localrefs in jassimp.cpp
authorDanke Xie <danke.xie@gmail.com>
Sat, 19 Dec 2015 09:21:59 +0000 (01:21 -0800)
committerDanke Xie <danke.xie@gmail.com>
Sat, 19 Dec 2015 09:30:02 +0000 (01:30 -0800)
commit2e831604e90914bb0e80a43b3815adb6d7755e24
tree7fc9387e3b41ecaac6b0876f2a7a89920915b5d5
parent8a037124a81934e7b5bb67c54e803310d22f18b6
Use SmartLocalRef to automatically release localrefs in jassimp.cpp

- Add SmartLocalRef class
- Use it to automatically delete localrefs of Java objects, generated
  by FindClass, createInstance, getField, NewStringUTF, etc.
- Tested with models with more than 512 nodes.
port/jassimp/jassimp-native/src/jassimp.cpp