diff --git a/fitz/fitz.i b/fitz/fitz.i index 1268d382c..43f889e59 100644 --- a/fitz/fitz.i +++ b/fitz/fitz.i @@ -9083,6 +9083,12 @@ struct Outline { def dest(self): '''outline destination details''' return linkDest(self, None) + + def __del__(self): + if not isinstance(self, Outline): + return + if getattr(self, "thisown", False): + self.__swig_destroy__(self) %} } };