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:
Axel Dörfler 2008-05-22 11:37:20 +00:00
parent 88f4305da5
commit 44431460dd

View File

@ -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;
}
}