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