diff --git a/Source/IO/FS/FS.cpp b/Source/IO/FS/FS.cpp index 1cf82b20..8d5f2fd0 100644 --- a/Source/IO/FS/FS.cpp +++ b/Source/IO/FS/FS.cpp @@ -561,7 +561,7 @@ namespace Aurora::IO::FS if (AuFS::Remove(*itr)) { bSuccess |= true; - itr = dirsAll.end(); + itr = dirsAll.erase(itr); } else { diff --git a/Source/IO/Net/AuNetSocket.cpp b/Source/IO/Net/AuNetSocket.cpp index 60bcbc29..698f0e08 100644 --- a/Source/IO/Net/AuNetSocket.cpp +++ b/Source/IO/Net/AuNetSocket.cpp @@ -41,6 +41,7 @@ namespace Aurora::IO::Net pWorker_(pWorker), pSocketDriver_(pSocketDriver), osHandle_(osHandle), + wpParent_(pParent), wpParent2_(pParent2) { this->pWorker_->AddSocket(this);