diff options
Diffstat (limited to 'src/users.cpp')
-rw-r--r-- | src/users.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/users.cpp b/src/users.cpp index 83800e01d..94ed97d93 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -518,6 +518,8 @@ void AddWhoWas(userrec* u) whowas_set* group = (whowas_set*)iter->second; if (group->size() > 10) { + WhoWasGroup *a = (WhoWasGroup*)*(group->begin()); + delete a; group->pop_front(); } WhoWasGroup *a = new WhoWasGroup(u); |