New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BSTR memory leaks #5184
Comments
Comment 2 by jteh on 2015-06-26 12:01 Also, do you see these leaks when you use Narrator? The way NVDA consumes UIA is probably more similar to Narrator. |
Comment 3 by DelRed (in reply to comment 2) on 2015-06-26 13:00
There are no leaks when I use Narrator. |
Comment 4 by jteh on 2015-06-28 23:08 Ctypes/comtypes manages freeing of BSTR in NVDA. We actually had to work around a bug a while ago where ctypes/comtypes was calling SysFreeString twice in certain cases. I don't think this is related, but I could be missing something. Mick may have a better idea on this one, but he's away for a couple of weeks. It'd be great if you can provide a simple compiled test case that shows this behaviour. |
Comment 5 by mdcurran on 2015-09-10 04:56 |
Although a very interesting ticket, I'm afraid we can't contact the original author any more, and as @michaelDCurran stated in #5184 (comment), a test case is needed for this. I'm leaning towards a close. |
Closing, as suggested by @LeonarddeR in #5184 (comment) |
Reported by DelRed on 2015-06-26 09:10
Hello, I use UI Automation with my controls, I have noticed that when I use NVDA and just tab all controls on my form - it cases memory leaks in my application. If I use JAWS - there is no such problem.
I think that the issue is that when I return VARIANT with BSTR (for example as answer to UIA_NamePropertyId), or just BSTR (IValueProvider::get_Value(BSTR *pRetVal)) I use SysAllocString, so after NVDA use this BSTR it should call SysFreeString.
The text was updated successfully, but these errors were encountered: