Patch by Bryce Groff: don't leak the driver settings handle.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32097 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2009-08-03 19:06:21 +00:00
parent fe05e6c359
commit 5c5d43953c

View File

@ -198,6 +198,7 @@ InitParamsPanel::Go(BString& name, BString& parameters)
const char* string = get_driver_parameter(handle, "name", const char* string = get_driver_parameter(handle, "name",
NULL, NULL); NULL, NULL);
name.SetTo(string); name.SetTo(string);
delete_driver_settings(handle);
} }
} else } else
fReturnValue = err; fReturnValue = err;