You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by kg...@apache.org on 2011/02/18 19:31:11 UTC

svn commit: r1072096 - /qpid/branches/qpid-2935/qpid/cpp/src/qpid/broker/SessionState.cpp

Author: kgiusti
Date: Fri Feb 18 18:31:10 2011
New Revision: 1072096

URL: http://svn.apache.org/viewvc?rev=1072096&view=rev
Log:
QPID-2935: do not take a reference to something about to be destroyed.

Modified:
    qpid/branches/qpid-2935/qpid/cpp/src/qpid/broker/SessionState.cpp

Modified: qpid/branches/qpid-2935/qpid/cpp/src/qpid/broker/SessionState.cpp
URL: http://svn.apache.org/viewvc/qpid/branches/qpid-2935/qpid/cpp/src/qpid/broker/SessionState.cpp?rev=1072096&r1=1072095&r2=1072096&view=diff
==============================================================================
--- qpid/branches/qpid-2935/qpid/cpp/src/qpid/broker/SessionState.cpp (original)
+++ qpid/branches/qpid-2935/qpid/cpp/src/qpid/broker/SessionState.cpp Fri Feb 18 18:31:10 2011
@@ -351,7 +351,7 @@ void SessionState::completeRcvMsg(Sequen
     // 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);



---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org