Changeset - 79ff2e46d057
[Not reviewed]
0 2 0
Jan Kaluza - 13 years ago 2012-10-04 10:09:34
hanzz.k@gmail.com
Do not use malloc_trim on BSd
2 files changed with 8 insertions and 0 deletions:
0 comments (0 inline, 0 general)
backends/libpurple/main.cpp
Show inline comments
 
@@ -17,7 +17,9 @@
 
#include "geventloop.h"
 

	
 
// #include "valgrind/memcheck.h"
 
#ifndef BSD
 
#include "malloc.h"
 
#endif
 
#include <algorithm>
 
#include "errno.h"
 
#include <boost/make_shared.hpp>
 
@@ -364,8 +366,10 @@ class SpectrumNetworkPlugin : public NetworkPlugin {
 

	
 
				purple_accounts_delete_wrapped(account);
 
#ifndef WIN32
 
#ifndef BSD
 
				malloc_trim(0);
 
#endif
 
#endif
 
// 				VALGRIND_DO_LEAK_CHECK;
 
			}
 
		}
src/usermanager.cpp
Show inline comments
 
@@ -31,7 +31,9 @@
 
#include "Swiften/Swiften.h"
 
#include "Swiften/Server/ServerStanzaChannel.h"
 
#include "Swiften/Elements/StreamError.h"
 
#ifndef BSD
 
#include "malloc.h"
 
#endif
 
// #include "valgrind/memcheck.h"
 

	
 
namespace Transport {
 
@@ -124,8 +126,10 @@ void UserManager::removeUser(User *user, bool onUserBehalf) {
 
	onUserDestroyed(user);
 
	delete user;
 
#ifndef WIN32
 
#ifndef BSD
 
	malloc_trim(0);
 
#endif
 
#endif
 
// 	VALGRIND_DO_LEAK_CHECK;
 
}
 

	
0 comments (0 inline, 0 general)