diff options
-rw-r--r-- | bin/tools/benchmark.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/bin/tools/benchmark.c b/bin/tools/benchmark.c index 1e2c79f..104aa25 100644 --- a/bin/tools/benchmark.c +++ b/bin/tools/benchmark.c @@ -254,8 +254,8 @@ main (int argc, char *argv[]) camera = uca_plugin_manager_get_camera (manager, argv[1], &error, NULL); if (camera == NULL) { - g_error ("Initialization: %s", error->message); - goto cleanup_camera; + g_print ("Initialization: %s\n", error->message); + goto cleanup_manager; } benchmark (camera, n_runs, n_frames); @@ -263,9 +263,6 @@ 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); |