[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] Another PixelArray memory leak
- To: pygame-users@xxxxxxxx
- Subject: [pygame] Another PixelArray memory leak
- From: Martti KÃhne <mysatyre@xxxxxxxxx>
- Date: Fri, 4 Dec 2015 20:31:57 +0100
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Fri, 04 Dec 2015 14:32:20 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=ZbuPgs/YlTVigY4Zdw6t4V/pWU77Y+lWQylQpxbgOVM=; b=ie+fVB9hMOK2Y63zSC8/WLXsxdLsy2kycoR1gIy/XsoojjKz7cls0asUfTFr8T3Bl9 7rV2ra4c616wuhKrELM6K8l7s/5EnnTvRlNukqN0L4zp3RlpVqBL+adF/McvrjJTmLze cFYlCjfXpClhs08LMeaQFuRdV7RvO5HeC0zTEWxCCvbwgM5jAUjkhg1jsZd1voyFV9mx jGcq6r5TMCewbYL78C62vcQ1tearcWHbvbng/bCCzh7ztpoudKnjYpve4w+JcsRL2WyP E4CvaHOCnP3WIo0NjZx9nuj0JCN+BP1GqUK0EUfkUFWF1GPmc7WcsyoqtIh3CkCYPNtf SNdg==
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
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