Commit 7054f661 authored by powei@chromium.org's avatar powei@chromium.org

android: fix ContentReadbackHandler destroy()

The native component is not guarranteed to be initialized before destroy()
is called.

BUG=375726

Review URL: https://codereview.chromium.org/295033003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@272265 0039d316-1c4b-4281-b951-d872f2087c98
parent dc493999
......@@ -52,7 +52,7 @@ public abstract class ContentReadbackHandler {
* Should be called when the ContentReadackHandler is not needed anymore.
*/
public void destroy() {
nativeDestroy(mNativeContentReadbackHandler);
if (mNativeContentReadbackHandler != 0) nativeDestroy(mNativeContentReadbackHandler);
mNativeContentReadbackHandler = 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