|
-
February 9th, 2009, 04:44 PM
#7
Re: [RESOLVED] exit(): memory leaks?
I solved many issues, but still remain a problem; I got memory leaks for each object I allocate with new durinig the program. Even when destructor is called. So, I found out how to call destructors when needed, but the destructor doesn't work; I defined a structure, with a pointer to the same structure type that form up a list.
The destructor just need to run over all members of the struct list (created with new) and delete its new-allocated pointer members and finally the pointer to the stuct itself. And it does, but still remains 48 byte memory leak per object, said normal block in the debugger...
Can anybody help me out with this also?
May be structs cannot be allocated and deallocated with new/delete?
Last edited by Buzzyous; February 9th, 2009 at 04:47 PM.
- Buzzyous -
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
|