google-code-export / papervision3d

Automatically exported from code.google.com/p/papervision3d
1 stars 1 forks source link

Improper use of the Dictionary Class #122

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In several Classes you can find :

myDictionary = new Dictionary ( true )
myDictionary[obj] = obj

Though the key reference to obj is weak, the value one is not. So 
myDictionary will prevent garbage collection of obj...

Some memory leaks are caused by that.

Original issue reported on code.google.com by Krob...@gmail.com on 3 Nov 2008 at 10:26

GoogleCodeExporter commented 9 years ago
Fixed.

Original comment by r.hauw...@gmail.com on 17 Nov 2008 at 12:11