The Daily Static
  The Daily Static
UF Archives
Register
UF Membership
Ad Free Site
Postcards
Community

Geekfinder
UFie Gear
Advertise on UF

Forum Rules
& FAQ


Username

Password


Create a New Account

 
 

Back to UserFriendly Strip Comments Index

Memory leak in C++ Code - help needed! by perpeduumimmobl2005-10-06 07:48:23
  memory barf by onur2005-10-06 08:18:13
    What is that? by Didactylos2005-10-06 09:39:41
      I think that his point, while poorly stated, was by Schol-R-LEA;2 2005-10-06 10:34:39
that the dynamic allocation was unnecessary in this case - if the OP used a local variable, the constructor would have handled the allocation automagically. Off-hand, I'd have to look up the library standard to see if this is correct or not, but others have said the same thing.

The comment about 'new' is just a snide remark about the fact that Java objects are always dynamically allocated; he was saying that the approach was closer to Java's idiom than C++'s.
[ Reply ]

 

[Todays Cartoon Discussion] [News Index]

Come get yer ARS (Account Registration System) Source Code here!
All images, characters, content and text are copyrighted and trademarks of J.D. Frazer except where other ownership applies. Don't do bad things, we have lawyers.
UserFriendly.Org and its operators are not liable for comments or content posted by its visitors, and will cheerfully assist the lawful authorities in hunting down script-kiddies, spammers and other net scum. And if you're really bad, we'll call your mom. (We're not kidding, we've done it before.)