summaryrefslogtreecommitdiffstats
path: root/ucad.c
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2017-10-16 09:32:09 +0200
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2017-10-16 09:32:09 +0200
commitce79916561268c51a69bbff9e61bae98ebe4aa1c (patch)
tree1f143de0b16afc35833c2377d66d23b1876fba06 /ucad.c
parent26bc9bb629c49c0d5a8668a92c0c7b64626b65c7 (diff)
downloaduca-net-ce79916561268c51a69bbff9e61bae98ebe4aa1c.tar.gz
uca-net-ce79916561268c51a69bbff9e61bae98ebe4aa1c.tar.bz2
uca-net-ce79916561268c51a69bbff9e61bae98ebe4aa1c.tar.xz
uca-net-ce79916561268c51a69bbff9e61bae98ebe4aa1c.zip
Don't use g_object_unref on NULL
Diffstat (limited to 'ucad.c')
-rw-r--r--ucad.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ucad.c b/ucad.c
index 8b2bd23..cd35118 100644
--- a/ucad.c
+++ b/ucad.c
@@ -475,7 +475,7 @@ main (int argc, char **argv)
if (camera == NULL) {
g_printerr ("Error during initialization: %s\n", error->message);
- goto cleanup_camera;
+ goto cleanup_manager;
}
if (!uca_camera_parse_arg_props (camera, argv, argc - 1, &error)) {
@@ -493,7 +493,6 @@ main (int argc, char **argv)
if (error != NULL)
g_printerr ("Error: %s\n", error->message);
-cleanup_camera:
g_object_unref (camera);
cleanup_manager: