On 8/23/09 11:37 AM, Agha Khan said:

>                       if (fileInfo != NULL)
>                       {
>                               delete fileInfo;

Another minor note: you don't need to check if the pointer is null.  free
(), delete, and delete[] all do nothing if given null (this is
documented, portable, and safe to rely on).

--
____________________________________________________________
Sean McBride, B. Eng                 [email protected]
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to