* 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:
Axel Dörfler
2008-08-22 09:20:28 +00:00
parent 29336cb02b
commit 2f2ba71fab
@@ -70,8 +70,10 @@ Stack::Stack()
continue;
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;
}
TRACE(("USB Stack: module %s successfully loaded\n", moduleNames[i]));
}