[mythtv] delete vs delete[] in dvbrecorder destructor

Stuart Cameron dooze at optushome.com.au
Sun Feb 27 20:59:48 UTC 2005

Until someone changes their mind in an uncoming compiler revision, or 
someone replaces the default allocator with a more efficient/special case 
one.. Then it's a fun one to track down - trust me. ;)

----- Original Message ----- 
From: "J. Donavan Stanley" <jdonavan at jdonavan.net>
To: "Development of mythtv" <mythtv-dev at mythtv.org>
Sent: Monday, February 28, 2005 6:46 AM
Subject: Re: [mythtv] delete vs delete[] in dvbrecorder destructor

> aczmail at cox.net wrote:
>>It does matter.
>>delete deletes an element
>>delete[] deletes an array of elements.
> In theory yes, as a general rule no.  Most compilers I've worked with 
> treat them both the same.
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev 

More information about the mythtv-dev mailing list