When you reimplement a class and allocate memory on the heap then delete the class with deleteLater() or whatever, do you need to create your own destructor for that class to free the allocated memory?

links for recommended reading is appreciated!