summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2017-01-28 12:38:45 +0100
committerCarlos Garnacho <carlosg@gnome.org>2017-01-28 13:05:42 +0100
commitf201cf174b5a7ccbd61bb030c5e7ca31dd7f5a2b (patch)
treedc60a4a04d937d02362113cfc9ab1cdf85989dcb /examples
parent86276776dccf2356d28cf24cc0eb1d8ec543ed9a (diff)
downloadtracker-f201cf174b5a7ccbd61bb030c5e7ca31dd7f5a2b.tar.gz
examples: Drop unneeded g_object_unref() call
The cursor will be NULL in the error paths, no need to try to unref it. Coverity ID: 1188470
Diffstat (limited to 'examples')
-rw-r--r--examples/libtracker-sparql/async-connection.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/examples/libtracker-sparql/async-connection.c b/examples/libtracker-sparql/async-connection.c
index 5c4541add..c18608c2f 100644
--- a/examples/libtracker-sparql/async-connection.c
+++ b/examples/libtracker-sparql/async-connection.c
@@ -107,11 +107,6 @@ query_cb (GObject *object,
md);
} else {
g_critical ("Could not run query: %s", error->message);
-
- if (cursor) {
- g_object_unref (cursor);
- }
-
g_error_free (error);
g_main_loop_quit (md->loop);
}