Prevent dangling pointer

This commit is contained in:
Alex
2023-03-14 06:24:02 +02:00
parent 855384aead
commit d7c9b7ab02
23 changed files with 91 additions and 90 deletions

View File

@ -46,7 +46,7 @@ namespace NetworkInterfaceManager
RegisteredEvents.remove(i);
// Delete all interfaces and their callbacks and free the memory
delete mem;
delete mem, mem = nullptr;
}
void NetworkInterface::FetchNetworkCards(unsigned long DriverUID)