[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Another PixelArray memory leak



Ok, I am l looking into it.

Lenard Lindstrom

On 15-12-04 11:31 AM, Martti KÃhne wrote:
Hello pygame list!

On a similar note as [0], using PixelArray's index operator with two
arguments spa = pygame.PixelArray(surf); spa[x, y] continuously went
allocating memory on my pygame build r3442.30ee31659166. Memory that
was lost that way would survive the lifteime of both the surface lock
and the object itself. The switch to spa[x][y] fixed the leakage for
me currently, however it would be great to see this handled correctly
upstream.

cheers!
mar77i

[0] https://bitbucket.org/pygame/pygame/issues/175/memory-leak-when-setting-pixels-with