Use smart pointer to release memory for QMimeData