summaryrefslogtreecommitdiffstats
path: root/ProcessList.c
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2014-11-27 17:48:38 -0200
committerHisham Muhammad <hisham@gobolinux.org>2014-11-27 17:48:38 -0200
commitcda6bdd56b54f4ab9da15e559edce9591ef12ce1 (patch)
tree1f420c7910e3d6acbef594a7391e8fe91545eb63 /ProcessList.c
parentff4d1b466fba116d0750a815a1d517dbc24b4b43 (diff)
Add ProcessList_delete to the variable interface.
Diffstat (limited to 'ProcessList.c')
-rw-r--r--ProcessList.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ProcessList.c b/ProcessList.c
index ed9dbca2..d164fa05 100644
--- a/ProcessList.c
+++ b/ProcessList.c
@@ -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) {

© 2014-2024 Faster IT GmbH | imprint | privacy policy