From: <md...@us...> - 2008-02-01 18:03:12
|
Revision: 4923 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4923&view=rev Author: mdboom Date: 2008-02-01 10:03:04 -0800 (Fri, 01 Feb 2008) Log Message: ----------- Backing out Glyph object leak fix, since it causes segfaults with PDF backend. Will look into it further. Modified Paths: -------------- trunk/matplotlib/src/ft2font.cpp Modified: trunk/matplotlib/src/ft2font.cpp =================================================================== --- trunk/matplotlib/src/ft2font.cpp 2008-02-01 18:02:14 UTC (rev 4922) +++ trunk/matplotlib/src/ft2font.cpp 2008-02-01 18:03:04 UTC (rev 4923) @@ -1036,6 +1036,7 @@ if ( (size_t)num >= gms.size()) throw Py::ValueError("Glyph index out of range"); + Py_INCREF(gms[num]); return Py::asObject(gms[num]); } @@ -1093,6 +1094,7 @@ glyphs.push_back(thisGlyph); Glyph* gm = new Glyph(face, thisGlyph, num); gms.push_back(gm); + Py_INCREF(gm); return Py::asObject( gm); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |