From 71d43de2e3e7b7919e3f81180aa1b7da17cf75ef Mon Sep 17 00:00:00 2001 From: Kenneth Anthony Giusti Date: Fri, 18 Feb 2011 18:31:10 +0000 Subject: QPID-2935: do not take a reference to something about to be destroyed. git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/qpid-2935@1072096 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/src/qpid/broker/SessionState.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qpid/cpp/src') diff --git a/qpid/cpp/src/qpid/broker/SessionState.cpp b/qpid/cpp/src/qpid/broker/SessionState.cpp index 6a4db874d4..11f3e84b70 100644 --- a/qpid/cpp/src/qpid/broker/SessionState.cpp +++ b/qpid/cpp/src/qpid/broker/SessionState.cpp @@ -351,7 +351,7 @@ void SessionState::completeRcvMsg(SequenceNumber id, // completion of this msg? If so, complete them. while (!pendingExecutionSyncs.empty() && receiverGetIncomplete().front() >= pendingExecutionSyncs.front()) { - const SequenceNumber& id = pendingExecutionSyncs.front(); + const SequenceNumber id = pendingExecutionSyncs.front(); pendingExecutionSyncs.pop(); QPID_LOG(debug, getId() << ": delayed execution.sync " << id << " is completed."); receiverCompleted(id); -- cgit v1.2.1