Even if it's probably outdated soon: fixed a crashing but in Shutdown() if
no card could be found. Note, the replacement does not suffer from this anyway. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12152 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -83,12 +83,9 @@ AccelerantDriver::AccelerantDriver()
|
||||
*/
|
||||
AccelerantDriver::~AccelerantDriver()
|
||||
{
|
||||
if (cursor)
|
||||
delete cursor;
|
||||
if (under_cursor)
|
||||
delete under_cursor;
|
||||
if (mode_list)
|
||||
free(mode_list);
|
||||
delete cursor;
|
||||
delete under_cursor;
|
||||
free(mode_list);
|
||||
}
|
||||
|
||||
/*!
|
||||
@@ -215,6 +212,9 @@ AccelerantDriver::Initialize()
|
||||
void
|
||||
AccelerantDriver::Shutdown()
|
||||
{
|
||||
if (card_fd < 0)
|
||||
return;
|
||||
|
||||
#ifdef RUN_UNDER_R5
|
||||
set_display_mode SetDisplayMode = (set_display_mode)accelerant_hook(B_SET_DISPLAY_MODE, NULL);
|
||||
if ( SetDisplayMode )
|
||||
|
||||
Reference in New Issue
Block a user