Skip to content

Commit

Permalink
fitz/fitz.i: fixed #2355.
Browse files Browse the repository at this point in the history
Fix from Harald, adds Outline.__del__() function similar to other classes.

[The bug seems to have been provoked by swig-4.1.1, it does not seem to occur
with swig-4.0.2.]
  • Loading branch information
julian-smith-artifex-com committed Apr 18, 2023
1 parent 6dce764 commit f82c9be
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions fitz/fitz.i
Original file line number Diff line number Diff line change
Expand Up @@ -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)
%}
}
};
Expand Down

0 comments on commit f82c9be

Please sign in to comment.