mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
delete all streams upon deletion of a local destination
This commit is contained in:
parent
393d4bc231
commit
ec624c89b2
3 changed files with 6 additions and 3 deletions
4
SAM.cpp
4
SAM.cpp
|
@ -18,7 +18,7 @@ namespace stream
|
|||
if (m_Stream)
|
||||
{
|
||||
m_Stream->Close ();
|
||||
delete m_Stream;
|
||||
DeleteStream (m_Stream);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -27,7 +27,7 @@ namespace stream
|
|||
if (m_Stream)
|
||||
{
|
||||
m_Stream->Close ();
|
||||
delete m_Stream;
|
||||
DeleteStream (m_Stream);
|
||||
m_Stream = nullptr;
|
||||
}
|
||||
delete this;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue