Fix data memory leak by using QSharedPointer