* The USB bus manager was leaking unused bus modules.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27134 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -70,8 +70,10 @@ Stack::Stack()
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
TRACE(("USB Stack: adding module %s\n", moduleNames[i]));
|
TRACE(("USB Stack: adding module %s\n", moduleNames[i]));
|
||||||
if (module->add_to(this) < B_OK)
|
if (module->add_to(this) < B_OK) {
|
||||||
|
put_module(moduleNames[i]);
|
||||||
continue;
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
TRACE(("USB Stack: module %s successfully loaded\n", moduleNames[i]));
|
TRACE(("USB Stack: module %s successfully loaded\n", moduleNames[i]));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user