[interfacekit] Re: Some news
- From: "DarkWyrm" <bpmagic@xxxxxxxxxxxxxxx>
- To: interfacekit@xxxxxxxxxxxxx
- Date: Mon, 18 Oct 2004 20:44:54 -0400 EDT
> Hi,
>
> I saw that you just commented out the offending code, but I would
> like to make a general observation.
>
> In C++, it is perfectly legal to delete a NULL pointer, using guard
> code like that is really just
> going to be duplicating the code already in operator new(), so I
> would recommend something more
> along the lines of:
>
> delete fAppCursor;
> fAppCursor = NULL;
>
> For these sorts of cases.
I wasn't aware of that. Thanks. :)
--DW
- References:
- [interfacekit] Re: Some news
- From: Alan Westbrook
Other related posts:
- » [interfacekit] Some news
- » [interfacekit] Re: Some news
- » [interfacekit] Re: Some news
- » [interfacekit] Re: Some news
- » [interfacekit] Re: Some news
- » [interfacekit] Re: Some news
- » [interfacekit] Re: Some news
- » [interfacekit] Re: Some news
- » [interfacekit] Re: Some news
- » [interfacekit] Re: Some news
- » [interfacekit] Re: Some news
- » [interfacekit] Re: Some news
- [interfacekit] Re: Some news
- From: Alan Westbrook