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.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to