ghkweon / dwscript

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

dwsJson object cloning problem #398

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When TdwsJSONObject.Clone runs, it creates a new object, clones each of its 
members, and attaches them to the new object. But it gets the ownership wrong, 
assigning

member.FOwner:=Self;

rather than 

member.FOwner:=obj;

meaning that a subsequent call to Detach on the cloned member will fail.

Original issue reported on code.google.com by masonwhe...@gmail.com on 16 May 2013 at 4:34

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r2096.

Original comment by zar...@gmail.com on 16 May 2013 at 9:14