]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/bancache.cpp
Merge pull request #1084 from SaberUK/insp20+fix-parallel-debug-install
[user/henk/code/inspircd.git] / src / bancache.cpp
index 0d83e6762f8684e9bc1719f807802ec49fd03521..52449e55e86d7995e34998a92a511547efc96ff9 100644 (file)
@@ -117,7 +117,6 @@ unsigned int BanCacheManager::RemoveEntries(const std::string &type, bool positi
                                /* we need to remove this one. */
                                ServerInstance->Logs->Log("BANCACHE", DEBUG, "BanCacheManager::RemoveEntries(): Removing a hit on " + b->IP);
                                delete b;
-                               b = NULL;
                                BanHash->erase(n); // WORD TO THE WISE: don't use RemoveHit here, because we MUST remove the iterator in a safe way.
                                removed++;
                        }
@@ -148,7 +147,6 @@ void BanCacheManager::RehashCache()
                {
                        /* we need to remove this one. */
                        delete b;
-                       b = NULL;
                        BanHash->erase(n); // WORD TO THE WISE: don't use RemoveHit here, because we MUST remove the iterator in a safe way.
                }
                else