View Issue Details

IDProjectCategoryView StatusLast Update
0019222Runner[All Projects] VariablesPublic2017-08-04 15:46
ReporterFlorian PreinfalkAssigned ToRussell Kay 
PriorityHighSeverityB - MajorReproducibility100%
Status ClosedResolutionFixed 
PlatformWindowsOSWindows 8OS Version
Product Version 
Target VersionFixed in Version 
Summary0019222: Variables: Memory leak when copying arrays
DescriptionIf you make a reference to an array, force gm to copy the referenced array by changing a value and replace the old array by a reference to the new array gm doesn't free the old array. SAMPLE URL:
Steps To Reproduce1) Run the supplied project in Windows
2) Open the Task Manager to see the memory leak
Additional InformationOriginal helpdesk ticket:
1.4 Found In1.99.464
2.x Runtime Found In
2.x Runtime Verified In


Russell Kay

2016-05-20 13:47

Manager   ~0043403

OK this is interesting and bares more investigation it is an issue in the VM but YYC is fine...


2016-05-26 12:09

Reporter   ~0043506

Killing the array before the copy solves the memory leak:
var a = v;
v = 0; //No Leak

// Force GM to copy the array
a[0] = a[0];

//v = 0; //Still Leaks
v = a;

Russell Kay

2017-04-06 17:00


MemTest.gmz (8,638 bytes)

Russell Kay

2017-04-07 12:28

Manager   ~0052693

Fixed in gitlab