Commit 6cda7e21 authored by Ioana Pandele's avatar Ioana Pandele Committed by Commit Bot

[PwdCheckAndroid] Fix bridge destruction

The native pointer was set to 0 before calling a method on it.

Bug: 1102025
Change-Id: I55bb0d60c02c70620738784f07d1c7764f63598e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2346430Reviewed-by: default avatarFriedrich [CET] <fhorschig@chromium.org>
Commit-Queue: Ioana Pandele <ioanap@chromium.org>
Cr-Commit-Position: refs/heads/master@{#796409}
parent 4f9cbfe7
...@@ -142,8 +142,8 @@ class PasswordCheckBridge { ...@@ -142,8 +142,8 @@ class PasswordCheckBridge {
*/ */
void destroy() { void destroy() {
if (mNativePasswordCheckBridge != 0) { if (mNativePasswordCheckBridge != 0) {
mNativePasswordCheckBridge = 0;
PasswordCheckBridgeJni.get().destroy(mNativePasswordCheckBridge); PasswordCheckBridgeJni.get().destroy(mNativePasswordCheckBridge);
mNativePasswordCheckBridge = 0;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment