﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
3929	Memory leak when returning struct members within With...EndWith	AutoXenon	Jon	"Original thread: ​https://www.autoitscript.com/forum/topic/209063-beware-of-abusing-undocumented-withendwith-syntax-on-dllstructs/



{{{
HotKeySet('{esc}',quit)
GUICreate("""")
GUISetState()
Local $text
While 1
    $text = state()
    Sleep(10) ; don't remove this, or your RAM will blow up instantly
WEnd

Func state()
     Local Static $struct = DllStructCreate('wchar string[1024]')
     With $struct
          Return .string
     EndWith
EndFunc

Func quit()
     exit
EndFunc
}}}
"	Bug	assigned		AutoIt	3.3.16.1	None			
