Permalink
Browse files

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

…into mdboom-ob_refcnt
  • Loading branch information...
2 parents f6e2a89 + 98ee4e9 commit 85af0c02bf9a8ecdd0fd18eab8c9662c6b9f4302 @astropy-buildbot astropy-buildbot committed Mar 23, 2011
Showing with 0 additions and 5 deletions.
  1. +0 −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());
}

0 comments on commit 85af0c0

Please sign in to comment.