Daemons are now spawned with "new", and thus they should be sent back using
"delete", not free(). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25603 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
88f4305da5
commit
44431460dd
@ -81,7 +81,7 @@ unregister_kernel_daemon(daemon_hook function, void* arg)
|
||||
if (daemon->function == function && daemon->arg == arg) {
|
||||
// found it!
|
||||
iterator.Remove();
|
||||
free(daemon);
|
||||
delete daemon;
|
||||
return B_OK;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user