[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Patch: Wrong ownership sematics for BSTRs

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Tue, 19 Jan 2010 21:21:49 +0100

On 19.01.2010 08:32, Dmitry wrote:
> 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()).

Thanks!
Committed in r18374 with some tweaks.

> 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.

You're right. I guess that was a leftover from where CreateProcess was
called directly there.

Fixed in r18376.

For your next patches, please do not reply to this thread - the subject
line doesn't match anymore.

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.net
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=757&dsMessageId=2440360
To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2010-01-19 21:22:03 CET

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.