diff options
Diffstat (limited to 'libnativebridge/native_bridge.cc')
-rw-r--r-- | libnativebridge/native_bridge.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libnativebridge/native_bridge.cc b/libnativebridge/native_bridge.cc index 7600780f79..46a05a23bf 100644 --- a/libnativebridge/native_bridge.cc +++ b/libnativebridge/native_bridge.cc @@ -233,10 +233,10 @@ bool LoadNativeBridge(const char* nb_library_filename, // Store the handle for later. native_bridge_handle = handle; } else { - callbacks = nullptr; - dlclose(handle); ALOGW("Unsupported native bridge API in %s (is version %d not compatible with %d)", nb_library_filename, callbacks->version, NAMESPACE_VERSION); + callbacks = nullptr; + dlclose(handle); } } else { dlclose(handle); |