Problem with object deletion?
-
I am using a Qsignalmapper and timer object in my class. When i am releasing the dynamically allocated memory of that class in the destructor of the class i am getting segmentation fault. What is the reason behind it? Does the object deleted automatically no need for
explicit delete or what? -
That depends on your code.
-
So how can i know that the memory is released after the program termination.
-
Hi,
take a look at "this article":http://doc.qt.nokia.com/stable/objecttrees.html . It might help you.
-
The OS makes sure all memory is freed when your application closes. So there is nothing to worry about after your program has terminated.