diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2015-03-08 19:45:56 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2015-03-08 19:52:28 -0300 |
commit | e7d6eb6a826f76d817d665cbbb41f9172949a539 (patch) | |
tree | 0f5fab7aba4541b16544544d075bfbd128ef8ce2 /linux | |
parent | 50000d808e23a80b8e3ec26b46062c419edff6d4 (diff) |
Fix deletion of processes. Closes #172.
Conflicts:
linux/LinuxProcess.c
Diffstat (limited to 'linux')
-rw-r--r-- | linux/LinuxProcess.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linux/LinuxProcess.c b/linux/LinuxProcess.c index 401a4836..c943b112 100644 --- a/linux/LinuxProcess.c +++ b/linux/LinuxProcess.c @@ -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); } |