summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2015-05-26 12:43:38 +0200
committerBastien Nocera <hadess@hadess.net>2015-07-10 16:03:46 +0200
commitf8e9945ef52023a9ee0c97413d515ba51ee8ef2e (patch)
tree072d6e745eeae0eb56fd606960700e2a5b33f5ef /examples
parent532b3083eb5aa18ac276a140324f43fa444a8d2f (diff)
downloadgrilo-f8e9945ef52023a9ee0c97413d515ba51ee8ef2e.tar.gz
examples: Don't use options uninitialised
From coverity: grilo-0.2.12/examples/browsing-pls.c:119: uninit_use_in_call: Using uninitialized value "options" when calling "g_object_unref". https://bugzilla.gnome.org/show_bug.cgi?id=749887
Diffstat (limited to 'examples')
-rw-r--r--examples/browsing-pls.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/browsing-pls.c b/examples/browsing-pls.c
index 4d07080..9aabc38 100644
--- a/examples/browsing-pls.c
+++ b/examples/browsing-pls.c
@@ -67,7 +67,7 @@ source_browser (gpointer data,
GList *media_elements;
GError *error = NULL;
GList *keys;
- GrlOperationOptions *options;
+ GrlOperationOptions *options = NULL;
GrlCaps *caps;
keys = grl_metadata_key_list_new (GRL_METADATA_KEY_TITLE,
@@ -116,7 +116,7 @@ source_browser (gpointer data,
out:
g_list_free (keys);
- g_object_unref (options);
+ g_clear_object (&options);
}
static void