From f88c0848bef7f34f61826cc78d9e01aa2cccec53 Mon Sep 17 00:00:00 2001 From: Michael Droettboom Date: Tue, 27 Nov 2012 11:24:06 -0500 Subject: [PATCH] Remove redundant ob_refcnt's that cause crashes when built in DEBUG mode. --- src/ft2font.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/ft2font.cpp b/src/ft2font.cpp index b9106c7a09b6..19e18e67914a 100644 --- a/src/ft2font.cpp +++ b/src/ft2font.cpp @@ -852,28 +852,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()); } @@ -891,7 +887,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()); }