set deleteLater on the pointers