renan-guimaraes / dwscript

Automatically exported from code.google.com/p/dwscript
0 stars 0 forks source link

Unbalanced reference counting in dwsUtils.TObjectList #387

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The parameterized type for dwsUtils.TObjectList is type-constrained as 
TRefCountedObject.  When TObjectList is freed, it calls TRefCountedObject.Free 
on each item in the list.  However, the Add method does not call IncRefCount on 
the objects.  This can lead to early free errors.

Original issue reported on code.google.com by masonwhe...@gmail.com on 8 May 2013 at 9:51

GoogleCodeExporter commented 9 years ago

Original comment by masonwhe...@gmail.com on 8 May 2013 at 9:51

GoogleCodeExporter commented 9 years ago
Nevermind. This was written after misunderstanding the way a certain piece of 
DWS internals worked.

Original comment by masonwhe...@gmail.com on 8 May 2013 at 10:51