Skip to content
This repository has been archived by the owner on Sep 1, 2022. It is now read-only.

GarlicRoutingSession: use raw pointer for GarlicDestination. Fixes #342 #466

Merged
merged 1 commit into from
Nov 18, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/core/router/garlic.cc
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ GarlicRoutingSession::~GarlicRoutingSession() {
for (auto it : m_UnconfirmedTagsMsgs)
delete it.second;
m_UnconfirmedTagsMsgs.clear();
m_Owner = nullptr;
}

GarlicRoutingSession::UnconfirmedTags*
Expand Down
2 changes: 1 addition & 1 deletion src/core/router/garlic.h
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ class GarlicRoutingSession
UnconfirmedTags* GenerateSessionTags();

private:
std::unique_ptr<GarlicDestination> m_Owner;
GarlicDestination* m_Owner;
std::shared_ptr<const kovri::core::RoutingDestination> m_Destination;
kovri::core::AESKey m_SessionKey;
std::list<SessionTag> m_SessionTags;
Expand Down