Update NativeProtocol.java

Cursor may leak