Dellocate memory after jni methods.
Merge pull request #19 from LightUpInc/fix-memory-leak

Dellocate memory after jni methods.