diff --git a/src/pypdfium2/_helpers/_internal/bases.py b/src/pypdfium2/_helpers/_internal/bases.py index cfcbcbde0..e6d7a0ce5 100644 --- a/src/pypdfium2/_helpers/_internal/bases.py +++ b/src/pypdfium2/_helpers/_internal/bases.py @@ -40,6 +40,7 @@ def __init__(self, close_func, *args, obj=None, needs_free=True, **kwargs): if obj is None: obj = self + # FIXME `self.parent` will provide the value of the property at the current time - however, we want to use the value from finalization time, not init time self._fin_args = (obj, AutoCloseable._close_template, self.raw, self._uuid, self.parent, close_func, *args) self._fin_kwargs = kwargs