The device name isn't allocated on the heap, so it shouldn't be freed. This also fixes the crash in case there is no serial mouse. Thanks to Oscar Lesta for providing the fix.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13261 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -386,5 +386,4 @@ mouse_device::init_check()
|
||||
mouse_device::~mouse_device()
|
||||
{
|
||||
delete sm;
|
||||
free(device_ref.name);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user