Don't double-free the Ethernet interface
It is currently done in both ~EthernetService() and ~NetStack(). Since NetStack is where it's added and where an explicit accessor function is provided, choose that location. Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
This commit is contained in:
parent
1939021364
commit
9037351c6c
@ -77,8 +77,6 @@ EthernetService::~EthernetService()
|
||||
{
|
||||
if (fSendBuffer)
|
||||
fInterface->FreeSendReceiveBuffer(fSendBuffer);
|
||||
|
||||
delete fInterface;
|
||||
}
|
||||
|
||||
// Init
|
||||
|
Loading…
Reference in New Issue
Block a user