Replace some native pointers by QSharedPointer