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 <[email protected]>
This commit is contained in:
Andreas Faerber
2017-11-13 16:46:32 +01:00
committed by Augustin Cavalier
parent 1939021364
commit 9037351c6c
-2
View File
@@ -77,8 +77,6 @@ EthernetService::~EthernetService()
{
if (fSendBuffer)
fInterface->FreeSendReceiveBuffer(fSendBuffer);
delete fInterface;
}
// Init