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

Re: mismatching allocation and deallocation

From: Robert Dailey <rcdailey_at_gmail.com>
Date: Mon, 20 Oct 2008 15:05:06 -0500

On Mon, Oct 20, 2008 at 3:01 PM, Robert Dailey <rcdailey_at_gmail.com> wrote:

> On Sun, Oct 19, 2008 at 10:58 AM, Stefan Küng <tortoisesvn_at_gmail.com>wrote:
>
>> Daniel Marjamäki wrote:
>> > I also think these are mismatching
>> >
>> > [TortoiseProc/CheckoutDlg.cpp:347] CCheckoutDlg::m_pLogDlg
>> >
>> > I think that in the file Utils/MiscUI/Picture.cpp in the function
>> > CPicture::FreePictureData there are mismatching deallocations for
>> > "hIcons" and "lpIcons".
>>
>> Thanks!
>> Fixed in r14340.
>>
>> Do you have some tool which helps you find these?
>
>
> BoundsChecker is what I use :) They just released a new version compatible
> with Visual Studio 9.
>

Also, you don't have to worry about these allocation/deallocation issues if
you use smart pointers:

std::auto_ptr
boost::scoped_ptr
boost::scoped_array
boost::shared_ptr
boost::shared_array
boost::intrusive_ptr
... the list goes on... see Boost.SharedPointer.
Received on 2008-10-20 22:05:15 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.