Volley doesn't call finalize functions inside some classes

captchafix
nopjmp 11 years ago
parent 021edee83f
commit 09af20ce28
  1. 1
      Clover/app/src/main/java/com/android/volley/VolleyLog.java
  2. 3
      Clover/app/src/main/java/com/android/volley/toolbox/PoolingByteArrayOutputStream.java

@ -162,6 +162,7 @@ public class VolleyLog {
finish("Request on the loose");
e("Marker log finalized without finish() - uncaught exit point for request");
}
super.finalize();
}
/** Returns the time difference between the first and last events in this log. */

@ -61,8 +61,9 @@ public class PoolingByteArrayOutputStream extends ByteArrayOutputStream {
}
@Override
public void finalize() {
public void finalize() throws Throwable {
mPool.returnBuf(buf);
super.finalize();
}
/**

Loading…
Cancel
Save