dialog to be deleted never passed to destroy

Change-Id: Iee6c43aa192ae4d99872769f9cf8564c603165fb