FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[Original HTTPS Page]
Fix memory leak in FT2Font. · aebrahim/matplotlib@760b2fc · GitHub
aebrahim
matplotlib
Repository navigation
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Commit
760b2fc
Browse files
Browse the repository at this point in the history
Browse files
mdboom
committed
Fix memory leak in FT2Font.
1 parent
c881afd
commit
760b2fc
Copy full SHA for 760b2fc
1 file changed
+4
Lines changed: 4 additions & 0 deletions
File tree
Expand file tree
Collapse file tree
Open diff view settings
Filter options
src
ft2font.cpp
Expand file tree
Collapse file tree
Open diff view settings
Collapse file
src/ft2font.cpp
Copy file name to clipboard
Expand all lines: src/ft2font.cpp
+4
Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -985,6 +985,10 @@ FT2Font::~FT2Font()
985
985
{
986
986
FT_Done_Glyph
(glyphs[i]);
987
987
}
988
+
989
+
if
(stream.
descriptor
.
pointer
!=
NULL
) {
990
+
PyMem_Free
(stream.
descriptor
.
pointer
);
991
+
}
988
992
}
989
993
990
994
int
0 commit comments
Comments
0
(0)
Back
|
FazBrowse Home
|
New Git URL
0 commit comments