diff options
author | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2017-10-16 09:32:09 +0200 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2017-10-16 09:32:09 +0200 |
commit | ce79916561268c51a69bbff9e61bae98ebe4aa1c (patch) | |
tree | 1f143de0b16afc35833c2377d66d23b1876fba06 /ucad.c | |
parent | 26bc9bb629c49c0d5a8668a92c0c7b64626b65c7 (diff) | |
download | uca-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.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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: |