[ icewm-Bugs-3469476 ] Deletion of unnecessary null pointer checks?
SourceForge.net <[email protected]> Wed, 04 Jan 2012 09:01:59 -0800
| Newsgroups | gmane.comp.window-managers.icewm.devel |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #3469476, was opened at 2012-01-04 09:01 Message generated for change (Tracker Item Submitted) made by elfring You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100031&aid=3469476&group_id=31 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: icewm-1.3 Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Markus Elfring (elfring) Assigned to: Nobody/Anonymous (nobody) Summary: Deletion of unnecessary null pointer checks? Initial Comment: I have found a few places in a source files where a null pointer check is used before a call of the operator "delete[]". http://icewm.cvs.sourceforge.net/viewvc/icewm/icewm-1.2/src/yxapp.cc?revision=1.27&view=markup Would you like to omit such an extra check? http://stackoverflow.com/questions/615355/is-there-any-reason-to-check-for-a-null-pointer-before-deleting http://dietmar-kuehl.de/mirror/c++-faq/freestore-mgmt.html#faq-16.8 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100031&aid=3469476&group_id=31 ------------------------------------------------------------------------------ Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex infrastructure or vast IT resources to deliver seamless, secure access to virtual desktops. With this all-in-one solution, easily deploy virtual desktops for less than the cost of PCs and save 60% on VDI infrastructure costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox