From 90796c3cf285841660d880a7193be3d17269e148 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Mon, 15 Feb 2016 16:43:08 +0100 Subject: grab: fix resource cleanup order --- bin/tools/grab.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin/tools/grab.c') 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); -- cgit v1.2.3