kmonsoor / pyglet

Automatically exported from code.google.com/p/pyglet
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

[patch]TextLayout does not remove document handlers on delete() #758

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Have you tried Pyglet 1.2 alpha1 or the repository code?
Repo code @ Wed Jul 16

What steps will reproduce the problem?
See attached python file. 
A document that is added to a TextLayout will add some event handlers, but 
since TextLayout doesnt remove the handlers when the object is deleted. There 
will still be a ref to the document stopping python to collecting it and it 
result in the document still being rendered to the screen.
A patch to fix this issue is also attached. 

Any additional info (platform/language/hardware) that may be relevant?
Debian Jessie, amd64, python3.4

Original issue reported on code.google.com by norberg....@gmail.com on 14 Aug 2014 at 4:26

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by useboxnet on 17 Aug 2014 at 12:00

GoogleCodeExporter commented 9 years ago
Is there any plan to include this patch in the repo soon?

Original comment by norberg....@gmail.com on 5 Oct 2014 at 6:55