[tracker] examples: Drop unneeded g_object_unref() call
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] examples: Drop unneeded g_object_unref() call
- Date: Sat, 28 Jan 2017 12:08:00 +0000 (UTC)
commit f201cf174b5a7ccbd61bb030c5e7ca31dd7f5a2b
Author: Carlos Garnacho <carlosg gnome org>
Date: Sat Jan 28 12:38:45 2017 +0100
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
examples/libtracker-sparql/async-connection.c | 5 -----
1 files changed, 0 insertions(+), 5 deletions(-)
---
diff --git a/examples/libtracker-sparql/async-connection.c b/examples/libtracker-sparql/async-connection.c
index 5c4541a..c18608c 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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]