|
-
March 16th, 2009, 09:46 AM
#20
Re: Memory leak - arghh!
 Originally Posted by laserlight
Granted, since you are creating an array of char, malloc() will work, but it is walking a tight rope to use malloc() in C++ since you could accidentally use it for a non-POD type.
I don't think it's an array of char that's being created, but an array of CShape. That sounds like it's non-POD, making the malloc() "solution" incorrect.
Regards,
Paul McKenzie
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|