Article View: borland.public.cppbuilder.nativeapi
Article #2490Re: Memory Leak - TForm or TStringGrid or DynamicArray
From: Alan Bellingham
Date: Thu, 08 Feb 2007 00:15
Date: Thu, 08 Feb 2007 00:15
14 lines
1428 bytes
1428 bytes
Dan Mayo <do_not_spam_dmayo2@netzero.com> wrote:
> if (Foo!=NULL)
> {
> delete Foo;
> }
Redundant test, BTW - delete NULL is safe anyway.
Alan Bellingham
--
Team Thai Kingdom
<url:http://www.borland.com/newsgroups/> Borland newsgroup descriptions
<url:http://www.borland.com/newsgroups/netiquette.html> netiquette
Technical Details
Message-ID:
<0sqks2t4c90epuc62bv635h36cqeat0ujd@4ax.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!newsfeed.news2me.com!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<45c7810f@newsgroups.borland.com> <45c7dc8d$1@newsgroups.borland.com> <45c89ec6@newsgroups.borland.com> <45ca4546$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,191a7d21d69bde32 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: Alan Bellingham <alanb@episys.com> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Memory Leak - TForm or TStringGrid or DynamicArray Date: Thu, 08 Feb 2007 00:15:48 +0000 Reply-To: alanb@episys.com Message-ID: <0sqks2t4c90epuc62bv635h36cqeat0ujd@4ax.com> References: <45c7810f@newsgroups.borland.com> <45c7dc8d$1@newsgroups.borland.com> <45c89ec6@newsgroups.borland.com> <45ca4546$1@newsgroups.borland.com> X-Newsreader: Forte Agent 4.1/32.1088 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 62.49.31.105 X-Trace: newsgroups.borland.com 1170893745 62.49.31.105 (7 Feb 2007 16:15:45 -0800) Lines: 14 Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!newsfeed.news2me.com!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail