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

Re: New and Improved: Open in Visual Studio (patch attached)

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Fri, 17 May 2013 19:55:18 +0200

On 17.05.2013 18:31, Friedrich Brunzema wrote:
> Attached, please find the .zip file containing all the changed files.

Thanks.
Patch looks good. But I think you're leaking COM objects:
     result = ::GetActiveObject(clsid, NULL, &pUnk);
pUnk (or PDTE) is never released.
Same goes for pItemOperations a few lines down.

Committed your patch in r24196 with a few modifications:
* use of CComPtr<> to avoid the COM leaks
* changed name of menu entry to clarify that it opens the local file,
not the file as it appears in the selected revision

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=3055799
To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2013-05-17 19:55:27 CEST

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.