async: Changed lambda capture to respect object lifetime
The lambda was capturing the entire object being passed, rather then only the needed resource. On edge cases where the captured object would fall out of scope (deallocated) before the promise completion, it would try to use deallocated members, which would cause a segmentation fault.
Showing
Please register or sign in to comment