Add ProcessList_delete to the variable interface.

This commit is contained in:
Hisham Muhammad
2014-11-27 17:48:38 -02:00
parent ff4d1b466f
commit cda6bdd56b
5 changed files with 16 additions and 3 deletions

View File

@ -129,6 +129,7 @@ typedef struct ProcessList_ {
} ProcessList;
ProcessList* ProcessList_new(UsersTable* ut, Hashtable* pidWhiteList);
void ProcessList_delete(ProcessList* pl);
void ProcessList_scan(ProcessList* pl);
}*/
@ -211,13 +212,12 @@ ProcessList* ProcessList_init(ProcessList* this, UsersTable* usersTable, Hashtab
return this;
}
void ProcessList_delete(ProcessList* this) {
void ProcessList_done(ProcessList* this) {
Hashtable_delete(this->processTable);
Vector_delete(this->processes);
Vector_delete(this->processes2);
free(this->cpus);
free(this->fields);
free(this);
}
void ProcessList_setPanel(ProcessList* this, Panel* panel) {