My favorites | Sign in
Project Home Downloads Issues
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 360: How freeing memory allocated by MTLabel?
1 person starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


 
Reported by ozzac...@yahoo.it, Oct 11, 2011
What steps will reproduce the problem?

The following code shows that memory allocated by labels is never released (you only need to have a look in the Windows task manager at the memory allocated by the Python process):

plane = MTScatterPlane() 
mylabels = []
for i in xrange(200):
    label = MTLabel(label='Hello World', pos=(i,i), font_size=i)
    plane.add_widget(label)
    mylabels.append(label)

for label in mylabels:
    plane.remove_widget(label)
    del label

runTouchApp(plane)


What is the expected output? What do you see instead?

The memory must be freed when a label is no more used; or it must be a method to force the de-allocation (what?). 

What version of the product are you using? On what operating system?

PyMT v0.5.1; Windows 7 (64bit)

Please provide any additional information below.
The problem does not seem to be related to the use of the internal Cache integrated in the MTLabel implementation (even when disabled the problem persists).


Powered by Google Project Hosting