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 be0c7e5

Browse filesBrowse files
committed
Backing out Glyph object leak fix, since it causes segfaults with PDF
backend. Will look into it further. svn path=/branches/v0_91_maint/; revision=4922
1 parent 92ed201 commit be0c7e5
Copy full SHA for be0c7e5

File tree

1 file changed

+2
-0
lines changed
Filter options

1 file changed

+2
-0
lines changed

‎src/ft2font.cpp

Copy file name to clipboardExpand all lines: src/ft2font.cpp
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1036,6 +1036,7 @@ FT2Font::get_glyph(const Py::Tuple & args){
10361036
if ( (size_t)num >= gms.size())
10371037
throw Py::ValueError("Glyph index out of range");
10381038

1039+
Py_INCREF(gm);
10391040
return Py::asObject(gms[num]);
10401041
}
10411042

@@ -1093,6 +1094,7 @@ FT2Font::load_char(const Py::Tuple & args, const Py::Dict & kwargs) {
10931094
glyphs.push_back(thisGlyph);
10941095
Glyph* gm = new Glyph(face, thisGlyph, num);
10951096
gms.push_back(gm);
1097+
Py_INCREF(gm);
10961098
return Py::asObject( gm);
10971099
}
10981100

0 commit comments

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