[ pyobjc-Bugs-3313583 ] Memory leak concerning NSBezierPath + NumPy

"SourceForge.net" <[email protected]>
Newsgroups gmane.comp.python.pyobjc.devel
Message-ID <[email protected]>
Bugs item #3313583, was opened at 2011-06-08 19:03
Message generated for change (Tracker Item Submitted) made by gcewing
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=114534&aid=3313583&group_id=14534

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Gregory Ewing (gcewing)
Assigned to: Nobody/Anonymous (nobody)
Summary: Memory leak concerning NSBezierPath + NumPy

Initial Comment:
The following program leaks memory each time around the loop. 
The leak does not occur if something other than a NumPy array is used for the points.

#  Leaks

from AppKit import NSBezierPath, NSAutoreleasePool
import numpy

def test():
    path = NSBezierPath.bezierPath()
    points = numpy.array([(x, x) for x in xrange(1000)])
    while 1:
        pool = NSAutoreleasePool.alloc().init()
        path.appendBezierPathWithPoints_count_(points, len(points))
        path.removeAllPoints()
        pool = None

test()


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=114534&aid=3313583&group_id=14534

------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.