summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bin/tools/grab.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/tools/grab.c b/bin/tools/grab.c
index e3dea42..9eaa48b 100644
--- a/bin/tools/grab.c
+++ b/bin/tools/grab.c
@@ -262,12 +262,12 @@ main (int argc, char *argv[])
if (camera == NULL) {
g_print ("Error during initialization: %s\n", error->message);
- goto cleanup_camera;
+ goto cleanup_manager;
}
if (!uca_camera_parse_arg_props (camera, argv, argc - 1, &error)) {
g_print ("Error setting properties: %s\n", error->message);
- goto cleanup_manager;
+ goto cleanup_camera;
}
error = record_frames (camera, &opts);