Fix memory leak, and all work well except startup and jni log