am 9d19923b: Merge "Make sure the finalizer destroy runs on the UI thread"
* commit '9d19923bb599bee6137a4adab17675d954f0584a': Make sure the finalizer destroy runs on the UI thread
This commit is contained in:
@@ -4021,7 +4021,14 @@ public class WebView extends AbsoluteLayout
|
||||
@Override
|
||||
protected void finalize() throws Throwable {
|
||||
try {
|
||||
destroyImpl();
|
||||
if (mNativeClass != 0) {
|
||||
post(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
destroy();
|
||||
}
|
||||
});
|
||||
}
|
||||
} finally {
|
||||
super.finalize();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user