From 9f60989e549007fa203f8e82c11b629c0969dd96 Mon Sep 17 00:00:00 2001 From: matlabbe Date: Fri, 10 Apr 2015 17:54:51 -0400 Subject: [PATCH] added missing cleanup in OdometryViewer app --- tools/OdometryViewer/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/OdometryViewer/main.cpp b/tools/OdometryViewer/main.cpp index 9dc1f4d2..cc7668c9 100644 --- a/tools/OdometryViewer/main.cpp +++ b/tools/OdometryViewer/main.cpp @@ -799,11 +799,13 @@ int main (int argc, char * argv[]) else { printf("The camera is not calibrated! You should calibrate the camera first.\n"); + delete camera; } } else { printf("Failed to initialize the camera! Please select another driver (see \"--help\").\n"); + delete camera; } }