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 f88c084

Browse filesBrowse files
committed
Remove redundant ob_refcnt's that cause crashes when built in DEBUG mode.
1 parent 745bb21 commit f88c084
Copy full SHA for f88c084

File tree

Expand file treeCollapse file tree

1 file changed

+0
-5
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+0
-5
lines changed

‎src/ft2font.cpp

Copy file name to clipboardExpand all lines: src/ft2font.cpp
-5Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -852,28 +852,24 @@ FT2Font::FT2Font(Py::PythonClassInstance *self, Py::Tuple &args, Py::Dict &kwds)
852852
{
853853
std::ostringstream s;
854854
s << "Could not load facefile " << facefile << "; Unknown_File_Format" << std::endl;
855-
ob_refcnt--;
856855
throw Py::RuntimeError(s.str());
857856
}
858857
else if (error == FT_Err_Cannot_Open_Resource)
859858
{
860859
std::ostringstream s;
861860
s << "Could not open facefile " << facefile << "; Cannot_Open_Resource" << std::endl;
862-
ob_refcnt--;
863861
throw Py::RuntimeError(s.str());
864862
}
865863
else if (error == FT_Err_Invalid_File_Format)
866864
{
867865
std::ostringstream s;
868866
s << "Could not open facefile " << facefile << "; Invalid_File_Format" << std::endl;
869-
ob_refcnt--;
870867
throw Py::RuntimeError(s.str());
871868
}
872869
else if (error)
873870
{
874871
std::ostringstream s;
875872
s << "Could not open facefile " << facefile << "; freetype error code " << error << std::endl;
876-
ob_refcnt--;
877873
throw Py::RuntimeError(s.str());
878874
}
879875

@@ -891,7 +887,6 @@ FT2Font::FT2Font(Py::PythonClassInstance *self, Py::Tuple &args, Py::Dict &kwds)
891887
{
892888
std::ostringstream s;
893889
s << "Could not set the fontsize for facefile " << facefile << std::endl;
894-
ob_refcnt--;
895890
throw Py::RuntimeError(s.str());
896891
}
897892

0 commit comments

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