Re: Patch: Wrong ownership sematics for BSTRs
From: Dmitry <wipedout_at_yandex.ru>
Date: Tue, 19 Jan 2010 10:32:28 +0300
Okay, then here's the next patch. Introduces CComPtr where applicable, reduces duplication, cleans up here and there, eleminates an object leak ("pcdl" variable in CTortoiseProcApp::InitializeJumpList()).
I noticed that in RemoteCacheLink prior to calling CreateProcess() CString::GetBuffer() is called to access the underlying string. Why is this? Wouldn't casting to LPCTSTR be enough? In that case subsequent calls to CString::ReleaseBuffer() on both if-branches would be unnecessary.
Best wishes.
------------------------------------------------------
To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].
|
This is an archived mail posted to the TortoiseSVN Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.