Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e64fb8c

Browse files
committed
Merge pull request #1532 from mdboom/ob_refcnt_fix
CXX/Python2/cxx_extensions.cxx:1320: Assertion `ob_refcnt == 0'
2 parents 158cf33 + f88c084 commit e64fb8c

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/ft2font.cpp

Lines 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)