Fix leaks.

This commit is contained in:
czeidler 2012-01-21 17:30:49 +13:00
parent 79d286a56f
commit da6ab904f8

View File

@ -262,6 +262,8 @@ open_keyboards(int target, const char* start, struct keyboard* previous)
B_URGENT_DISPLAY_PRIORITY, keyboard);
if (keyboard->thread < 0) {
close(fd);
closedir(dir);
delete keyboard;
return NULL;
}