mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-03 16:27:46 +08:00
added missing cleanup in OdometryViewer app
This commit is contained in:
@@ -799,11 +799,13 @@ int main (int argc, char * argv[])
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
printf("The camera is not calibrated! You should calibrate the camera first.\n");
|
printf("The camera is not calibrated! You should calibrate the camera first.\n");
|
||||||
|
delete camera;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
printf("Failed to initialize the camera! Please select another driver (see \"--help\").\n");
|
printf("Failed to initialize the camera! Please select another driver (see \"--help\").\n");
|
||||||
|
delete camera;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user