aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/CompilerServices
diff options
context:
space:
mode:
authorjpbruyere <jp.bruyere@hotmail.com>2015-09-16 15:16:45 +0200
committerjpbruyere <jp.bruyere@hotmail.com>2015-09-16 15:16:45 +0200
commitc9d9828221aaa571651ded4a01e21a10adcafb5e (patch)
tree704c5dafd6a01a0ac5e918a32e461a826fdce179 /src/CompilerServices
parent4684df8a9c356e824b103cefa804af09c1b6198b (diff)
* Interface.cs:
* GraphicObject.cs: * TemplatedControl.cs: * CompilerServices.cs: Free references queue for dynamic bindings prevent adding reference to spurious object creation during serializer init which cause alien ref impossible to clear * testPopper.goml: f
Diffstat (limited to 'src/CompilerServices')
-rw-r--r--src/CompilerServices/CompilerServices.cs9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/CompilerServices/CompilerServices.cs b/src/CompilerServices/CompilerServices.cs
index 3d4ebc5a..1f5df063 100644
--- a/src/CompilerServices/CompilerServices.cs
+++ b/src/CompilerServices/CompilerServices.cs
@@ -254,14 +254,7 @@ namespace go
dynHandleCpt++;
//register target object reference
- int dstIdx = Interface.References.IndexOf(binding.Source);
-
- if (dstIdx < 0) {
- dstIdx = Interface.References.Count;
- Interface.References.Add (binding.Source);
- }
-
-
+ int dstIdx = Interface.Reference(binding.Source);
#region IL generation
ILGenerator il = dm.GetILGenerator(256);