public void destroy() {
    if (mNativeObject != 0) {
        nativeDestroy(mNativeObject);
    }
    release();
}