fix client Channel ref leak through Context search map

This commit is contained in:
Michael Davidsaver
2017-06-19 11:30:08 +02:00
parent f610f498fa
commit cd722388dc
3 changed files with 24 additions and 15 deletions

View File

@@ -3286,10 +3286,6 @@ private:
new InternalChannelImpl(context, channelID, name, requester, priority, addresses));
ChannelImpl::shared_pointer thisPointer = tp;
static_cast<InternalChannelImpl*>(thisPointer.get())->activate();
{
ChannelImpl::shared_pointer wrap(thisPointer.get(), Destroyable::cleaner(thisPointer));
thisPointer.swap(wrap);
}
return thisPointer;
}
@@ -3315,6 +3311,7 @@ private:
private:
// intentionally returning non-const reference
int32_t& getUserValue() {
return m_userValue;
}