зеркало из https://github.com/mozilla/pjs.git
Bug 716673 - Remove unnecessary finalize() function. r=pcwalton
The finalize will never be called because GeckoAppShell holds on to the PZC (as a GeckoEventListener) thereby preventing it from ever getting GC'd.
This commit is contained in:
Родитель
b71831f2db
Коммит
8db9e488e0
|
@ -166,15 +166,6 @@ public class PanZoomController
|
|||
GeckoAppShell.registerGeckoEventListener("Gesture:ScrollAck", this);
|
||||
}
|
||||
|
||||
protected void finalize() throws Throwable {
|
||||
GeckoAppShell.unregisterGeckoEventListener("Browser:ZoomToRect", this);
|
||||
GeckoAppShell.unregisterGeckoEventListener("Browser:ZoomToPageWidth", this);
|
||||
GeckoAppShell.unregisterGeckoEventListener("Panning:Override", this);
|
||||
GeckoAppShell.unregisterGeckoEventListener("Panning:CancelOverride", this);
|
||||
GeckoAppShell.unregisterGeckoEventListener("Gesture:ScrollAck", this);
|
||||
super.finalize();
|
||||
}
|
||||
|
||||
public void handleMessage(String event, JSONObject message) {
|
||||
Log.i(LOGTAG, "Got message: " + event);
|
||||
try {
|
||||
|
|
Загрузка…
Ссылка в новой задаче