mirror of https://github.com/xzeldon/htop.git
Fix deletion of processes. Closes #172.
Conflicts: linux/LinuxProcess.c
This commit is contained in:
parent
50000d808e
commit
e7d6eb6a82
|
@ -29,13 +29,13 @@ typedef struct LinuxProcess_ {
|
|||
|
||||
LinuxProcess* LinuxProcess_new(Settings* settings) {
|
||||
LinuxProcess* this = calloc(sizeof(LinuxProcess), 1);
|
||||
Object_setClass(this, Class(Process));
|
||||
Process_init(&this->super, settings);
|
||||
return this;
|
||||
}
|
||||
|
||||
void LinuxProcess_delete(Object* cast) {
|
||||
LinuxProcess* this = (LinuxProcess*) this;
|
||||
Object_setClass(this, Class(Process));
|
||||
LinuxProcess* this = (LinuxProcess*) cast;
|
||||
Process_done((Process*)cast);
|
||||
free(this);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue