https://github.com/Arturo-1212/PTCGPB/blob/5d9cbff533002cb855398e3a8ce2bfc2d9395291/Scripts/Main.ahk#L1074C5-L1074C26
ObjRelease never called on pIRandomAccessStream within cropAndOcr, which I believe means the COM object reference count will never drop to zero and object will not be released from memory.
https://github.com/Arturo-1212/PTCGPB/blob/5d9cbff533002cb855398e3a8ce2bfc2d9395291/Scripts/Main.ahk#L1074C5-L1074C26
ObjReleasenever called onpIRandomAccessStreamwithincropAndOcr, which I believe means the COM object reference count will never drop to zero and object will not be released from memory.