Fix a few node deref

This commit is contained in:
Atlante45 2015-07-13 15:34:37 -07:00
parent eb56999077
commit 81ad0056c3
3 changed files with 5 additions and 5 deletions

View file

@ -337,7 +337,7 @@ void AvatarMixer::broadcastAvatarData() {
}); });
// send the avatar data PacketList // send the avatar data PacketList
nodeList->sendPacketList(avatarPacketList, node); nodeList->sendPacketList(avatarPacketList, *node);
// record the bytes sent for other avatar data in the AvatarMixerClientData // record the bytes sent for other avatar data in the AvatarMixerClientData
nodeData->recordSentAvatarData(numAvatarDataBytes); nodeData->recordSentAvatarData(numAvatarDataBytes);

View file

@ -287,7 +287,7 @@ int OctreeInboundPacketProcessor::sendNackPackets() {
packetsSent += nackPacketList.getNumPackets(); packetsSent += nackPacketList.getNumPackets();
// send the list of nack packets // send the list of nack packets
nodeList->sendPacketList(nackPacketList, destinationNode); nodeList->sendPacketList(nackPacketList, *destinationNode);
} }
} }

View file

@ -974,7 +974,7 @@ void DomainServer::sendDomainListToNode(const SharedNodePointer& node, const Hif
} }
// write the PacketList to this node // write the PacketList to this node
limitedNodeList->sendPacketList(domainListPackets, node); limitedNodeList->sendPacketList(domainListPackets, *node);
} }
QUuid DomainServer::connectionSecretForNodes(const SharedNodePointer& nodeA, const SharedNodePointer& nodeB) { QUuid DomainServer::connectionSecretForNodes(const SharedNodePointer& nodeA, const SharedNodePointer& nodeB) {
@ -1094,7 +1094,7 @@ void DomainServer::readAvailableDatagrams() {
assignmentStream << uniqueAssignment; assignmentStream << uniqueAssignment;
limitedNodeList->sendUnreliablePacket(*assignmentPacket, *senderSockAddr); limitedNodeList->sendUnreliablePacket(*assignmentPacket, senderSockAddr);
// add the information for that deployed assignment to the hash of pending assigned nodes // add the information for that deployed assignment to the hash of pending assigned nodes
PendingAssignedNodeData* pendingNodeData = new PendingAssignedNodeData(assignmentToDeploy->getUUID(), PendingAssignedNodeData* pendingNodeData = new PendingAssignedNodeData(assignmentToDeploy->getUUID(),
@ -1125,7 +1125,7 @@ void DomainServer::readAvailableDatagrams() {
dtlsRequiredPacket->writePrimitive(dtlsPort); dtlsRequiredPacket->writePrimitive(dtlsPort);
} }
limitedNodeList->sendUnreliablePacket(*dtlsRequiredPacket, *senderSockAddr); limitedNodeList->sendUnreliablePacket(*dtlsRequiredPacket, senderSockAddr);
} }
} }
} }