diff options
author | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2016-02-15 16:43:08 +0100 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2016-02-15 16:43:08 +0100 |
commit | 90796c3cf285841660d880a7193be3d17269e148 (patch) | |
tree | da7357330b33b88420ac20ff5c9ea17fd9f84178 /bin | |
parent | a6ebdf3e34eea21764be89c2b14833a6d641d187 (diff) | |
download | uca-90796c3cf285841660d880a7193be3d17269e148.tar.gz uca-90796c3cf285841660d880a7193be3d17269e148.tar.bz2 uca-90796c3cf285841660d880a7193be3d17269e148.tar.xz uca-90796c3cf285841660d880a7193be3d17269e148.zip |
grab: fix resource cleanup order
Diffstat (limited to 'bin')
-rw-r--r-- | bin/tools/grab.c | 4 |
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); |