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:
Andreas Faerber 2010-06-13 16:44:09 +02:00 committed by Augustin Cavalier
parent 1939021364
commit 9037351c6c

View File

@ -77,8 +77,6 @@ EthernetService::~EthernetService()
{
if (fSendBuffer)
fInterface->FreeSendReceiveBuffer(fSendBuffer);
delete fInterface;
}
// Init