Thank you a lot for quick and exact answer!
If you do not like that cleanup or if it is too hard to decide whether to free the memory you can use one oft these.
I have used QSharedDataPointer (but not the others so far), and it seems to work nice.
You're welcome !
If you have everything running now, please update the thread title prepending [solved] so other forum users may know a solution has been found :)
Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.