Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'ob_refcnt' of https://github.com/mdboom/matplotlib-py3

…into mdboom-ob_refcnt
  • Loading branch information...
commit 85af0c02bf9a8ecdd0fd18eab8c9662c6b9f4302 2 parents f6e2a89 + 98ee4e9
astropy-buildbot astropy-buildbot authored
Showing with 0 additions and 5 deletions.
  1. +0 −5 src/ft2font.cpp
5 src/ft2font.cpp
View
@@ -674,28 +674,24 @@ FT2Font::FT2Font(Py::PythonClassInstance *self, Py::Tuple &args, Py::Dict &kwds)
{
std::ostringstream s;
s << "Could not load facefile " << facefile << "; Unknown_File_Format" << std::endl;
- ob_refcnt--;
throw Py::RuntimeError(s.str());
}
else if (error == FT_Err_Cannot_Open_Resource)
{
std::ostringstream s;
s << "Could not open facefile " << facefile << "; Cannot_Open_Resource" << std::endl;
- ob_refcnt--;
throw Py::RuntimeError(s.str());
}
else if (error == FT_Err_Invalid_File_Format)
{
std::ostringstream s;
s << "Could not open facefile " << facefile << "; Invalid_File_Format" << std::endl;
- ob_refcnt--;
throw Py::RuntimeError(s.str());
}
else if (error)
{
std::ostringstream s;
s << "Could not open facefile " << facefile << "; freetype error code " << error << std::endl;
- ob_refcnt--;
throw Py::RuntimeError(s.str());
}
@@ -712,7 +708,6 @@ FT2Font::FT2Font(Py::PythonClassInstance *self, Py::Tuple &args, Py::Dict &kwds)
{
std::ostringstream s;
s << "Could not set the fontsize for facefile " << facefile << std::endl;
- ob_refcnt--;
throw Py::RuntimeError(s.str());
}
Please sign in to comment.
Something went wrong with that request. Please try again.