[Pyobjc-dev] [ pyobjc-Bugs-3313583 ] Memory leak concerning NSBezierPath + NumPy
Brought to you by:
ronaldoussoren
From: SourceForge.net <no...@so...> - 2011-06-08 07:03:41
|
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 |