Comment 11 for bug 1041084

Revision history for this message
Bruno Chareyre (bruno-chareyre) wrote : Re: memory leak while erasing facets

Yet another example leaking:

e=ForceEngine()
for k in range(1000):
   e.ids=range(0,1000000)

While this, of course gives no problem:
ids=[]
for k in range(1000):
   ids=range(0,1000000)

It is very annoying because it is a common situation (although fortunately we assign small things in most cases so the leak is unnoticed).

It sounds like a broken reference counting.
If so, the solution must be somewhere in Serializable.hpp, maybe _DEF_READWRITE_BY_VALUE?
But I'm still clueless overall.