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:
Stefano Ceccherini
2005-06-24 09:28:49 +00:00
parent 0ec4af2233
commit 171f28336b
@@ -386,5 +386,4 @@ mouse_device::init_check()
mouse_device::~mouse_device()
{
delete sm;
free(device_ref.name);
}