call malloc_trim also in PurpleAccount destructor
This commit is contained in:
parent
8ee0310448
commit
62e6bdab3c
1 changed files with 2 additions and 0 deletions
|
@ -274,6 +274,8 @@ class SpectrumNetworkPlugin : public NetworkPlugin {
|
|||
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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue