Skip to content

Commit 6474039

Browse files
committed
fix getMetadata memory leak
1 parent b10a8a5 commit 6474039

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fitz/fitz.i

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1101,7 +1101,7 @@ struct Document
11011101
}
11021102
11031103
CLOSECHECK0(_getMetadata, """Get metadata.""")
1104-
char *_getMetadata(const char *key)
1104+
PyObject* _getMetadata(const char *key)
11051105
{
11061106
PyObject *res;
11071107
fz_document *doc = (fz_document *) $self;

0 commit comments

Comments
 (0)