Problem with object deletion?
General and Desktop
5
Posts
3
Posters
2.3k
Views
1
Watching
-
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.
-
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.