malloc_trim in main instance too

This commit is contained in:
HanzZ 2011-08-19 10:04:09 +02:00
parent c7f2b62980
commit 6d79da96f1

View file

@ -30,6 +30,7 @@
#include "Swiften/Swiften.h"
#include "Swiften/Server/ServerStanzaChannel.h"
#include "Swiften/Elements/StreamError.h"
#include "malloc.h"
using namespace log4cxx;
@ -92,6 +93,7 @@ void UserManager::removeUser(User *user) {
m_cachedUser = NULL;
onUserDestroyed(user);
delete user;
malloc_trim(0);
}
int UserManager::getUserCount() {