From 171f28336b1c42613ebd91a62997fc62615b658b Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Fri, 24 Jun 2005 09:28:49 +0000 Subject: [PATCH] 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 --- .../input_server/devices/serial_mouse/MouseInputDevice.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/add-ons/input_server/devices/serial_mouse/MouseInputDevice.cpp b/src/add-ons/input_server/devices/serial_mouse/MouseInputDevice.cpp index 1a11741f67..36fed92aae 100644 --- a/src/add-ons/input_server/devices/serial_mouse/MouseInputDevice.cpp +++ b/src/add-ons/input_server/devices/serial_mouse/MouseInputDevice.cpp @@ -386,5 +386,4 @@ mouse_device::init_check() mouse_device::~mouse_device() { delete sm; - free(device_ref.name); }