summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rw-r--r--bin/tools/benchmark.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/tools/benchmark.c b/bin/tools/benchmark.c
index b3a873f..f4c6c52 100644
--- a/bin/tools/benchmark.c
+++ b/bin/tools/benchmark.c
@@ -361,7 +361,7 @@ main (int argc, char *argv[])
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;
}
benchmark (camera, &options);
@@ -369,9 +369,11 @@ main (int argc, char *argv[])
g_io_channel_shutdown (log_channel, TRUE, &error);
g_assert_no_error (error);
+cleanup_camera:
+ g_object_unref (camera);
+
cleanup_manager:
g_object_unref (manager);
- g_object_unref (camera);
return 0;
}