From 9037351c6cd422aad9c6e0dec3e5236b46d55f23 Mon Sep 17 00:00:00 2001 From: Andreas Faerber Date: Sun, 13 Jun 2010 16:44:09 +0200 Subject: [PATCH] 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 --- src/system/boot/loader/net/Ethernet.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/system/boot/loader/net/Ethernet.cpp b/src/system/boot/loader/net/Ethernet.cpp index 6e16756bb9..e2724bc89e 100644 --- a/src/system/boot/loader/net/Ethernet.cpp +++ b/src/system/boot/loader/net/Ethernet.cpp @@ -77,8 +77,6 @@ EthernetService::~EthernetService() { if (fSendBuffer) fInterface->FreeSendReceiveBuffer(fSendBuffer); - - delete fInterface; } // Init