Commit e7d6eb6a authored by Hisham Muhammad's avatar Hisham Muhammad
Browse files

Fix deletion of processes. Closes #172.

Conflicts:
	linux/LinuxProcess.c
parent 50000d80
...@@ -29,13 +29,13 @@ typedef struct LinuxProcess_ { ...@@ -29,13 +29,13 @@ typedef struct LinuxProcess_ {
LinuxProcess* LinuxProcess_new(Settings* settings) { LinuxProcess* LinuxProcess_new(Settings* settings) {
LinuxProcess* this = calloc(sizeof(LinuxProcess), 1); LinuxProcess* this = calloc(sizeof(LinuxProcess), 1);
Object_setClass(this, Class(Process));
Process_init(&this->super, settings); Process_init(&this->super, settings);
return this; return this;
} }
void LinuxProcess_delete(Object* cast) { void LinuxProcess_delete(Object* cast) {
LinuxProcess* this = (LinuxProcess*) this; LinuxProcess* this = (LinuxProcess*) cast;
Object_setClass(this, Class(Process));
Process_done((Process*)cast); Process_done((Process*)cast);
free(this); free(this);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment