Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit af4046e

Browse filesBrowse files
authored
Merge pull request #22650 from QuLogic/fix-ft2font-leak
Fix new leak in ft2font introduced in #22604
2 parents d7828f3 + b570107 commit af4046e
Copy full SHA for af4046e

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎src/ft2font_wrapper.cpp

Copy file name to clipboardExpand all lines: src/ft2font_wrapper.cpp
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ static unsigned long read_from_file_callback(FT_Stream stream,
291291
return 1; // Non-zero signals error, when count == 0.
292292
}
293293
}
294-
return PyLong_AsUnsignedLong(PyLong_FromSsize_t(n_read));
294+
return (unsigned long)n_read;
295295
}
296296

297297
static void close_file_callback(FT_Stream stream)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.