@Override
  protected void finalize() throws Throwable {
    if (isClosed()) {
      return;
    }

    Log.w(
        TAG,
        "finalize: Chunk "
            + Integer.toHexString(System.identityHashCode(this))
            + " still active. ");
    // do the actual clearing
    try {
      close();
    } finally {
      super.finalize();
    }
  }
A finalizer, just in case. Just delegates to {@link #close()}

@throws Throwable
memory-types/nativememory/src/main/java/com/facebook/imagepipeline/memory/NativeMemoryChunk.java