Changeset - 62e6bdab3c02
[Not reviewed]
0 1 0
HanzZ - 14 years ago 2011-07-28 00:40:11
hanzz.k@gmail.com
call malloc_trim also in PurpleAccount destructor
1 file changed with 2 insertions and 0 deletions:
0 comments (0 inline, 0 general)
backends/libpurple/main.cpp
Show inline comments
 
@@ -271,12 +271,14 @@ class SpectrumNetworkPlugin : public NetworkPlugin {
 
					// purple_pounce_destroy_all_by_account(account);
 

	
 
				/* This will cause the deletion of an old buddy icon. */
 
				purple_buddy_icons_set_account_icon(account, NULL, 0);
 

	
 
				purple_account_destroy(account);
 
				// force returning of memory chunks allocated by libxml2 to kernel
 
				malloc_trim(0);
 
// 				VALGRIND_DO_LEAK_CHECK;
 
			}
 
		}
 

	
 
		void handleStatusChangeRequest(const std::string &user, int status, const std::string &statusMessage) {
 
			PurpleAccount *account = m_sessions[user];
0 comments (0 inline, 0 general)