summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Anthony Giusti <kgiusti@apache.org>2011-02-18 18:31:10 +0000
committerKenneth Anthony Giusti <kgiusti@apache.org>2011-02-18 18:31:10 +0000
commit71d43de2e3e7b7919e3f81180aa1b7da17cf75ef (patch)
tree6718f83d18d61454c58418d281c155393b5c412b
parent9217a2561c363f9846524f5e012b9d57db32e529 (diff)
downloadqpid-python-71d43de2e3e7b7919e3f81180aa1b7da17cf75ef.tar.gz
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
-rw-r--r--qpid/cpp/src/qpid/broker/SessionState.cpp2
1 files changed, 1 insertions, 1 deletions
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);