mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-04 00:37:46 +08:00
fixed a crash after OpenNI2 initialization failure
This commit is contained in:
@@ -3558,7 +3558,8 @@ Camera * PreferencesDialog::createCamera(bool useRawImages)
|
|||||||
delete camera;
|
delete camera;
|
||||||
camera = 0;
|
camera = 0;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
//should be after initialization
|
//should be after initialization
|
||||||
if(driver == kSrcOpenNI2)
|
if(driver == kSrcOpenNI2)
|
||||||
{
|
{
|
||||||
@@ -3572,6 +3573,7 @@ Camera * PreferencesDialog::createCamera(bool useRawImages)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return camera;
|
return camera;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user