You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AMQPQueue::~AMQPQueue() {
this->closeChannel();
if (pmessage)
delete pmessage;
}
, but use interface Consume, line 451,456, pmessage is a temporary var, don't manage the life cycle of AMQPMessage, so that ::~AMQPQueue() , delete pmessage is error .
#if __cplusplus > 199711L // C++11 or greater
unique_ptr message ( new AMQPMessage(this) );
#else
auto_ptr message ( new AMQPMessage(this) );
#endif
pmessage = message.get();
The text was updated successfully, but these errors were encountered:
AMQPQueue::~AMQPQueue() {
this->closeChannel();
if (pmessage)
delete pmessage;
}
, but use interface Consume, line 451,456, pmessage is a temporary var, don't manage the life cycle of AMQPMessage, so that ::~AMQPQueue() , delete pmessage is error .
#if __cplusplus > 199711L // C++11 or greater
unique_ptr message ( new AMQPMessage(this) );
#else
auto_ptr message ( new AMQPMessage(this) );
#endif
pmessage = message.get();
The text was updated successfully, but these errors were encountered: