|
From: <md...@us...> - 2008-02-01 18:02:24
|
Revision: 4922
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4922&view=rev
Author: mdboom
Date: 2008-02-01 10:02:14 -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:
--------------
branches/v0_91_maint/src/ft2font.cpp
Modified: branches/v0_91_maint/src/ft2font.cpp
===================================================================
--- branches/v0_91_maint/src/ft2font.cpp 2008-02-01 17:36:48 UTC (rev 4921)
+++ branches/v0_91_maint/src/ft2font.cpp 2008-02-01 18:02:14 UTC (rev 4922)
@@ -1036,6 +1036,7 @@
if ( (size_t)num >= gms.size())
throw Py::ValueError("Glyph index out of range");
+ Py_INCREF(gm);
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.
|