[tracker-miners/wip/carlosg/coverity-fixes: 3/11] tracker-miner-rss: Check for a NULL domain ontology
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker-miners/wip/carlosg/coverity-fixes: 3/11] tracker-miner-rss: Check for a NULL domain ontology
- Date: Mon, 14 Sep 2020 10:33:07 +0000 (UTC)
commit 32b0bc6bc800515db40d67adb84972f619c48862
Author: Carlos Garnacho <carlosg gnome org>
Date: Mon Sep 7 18:36:01 2020 +0200
tracker-miner-rss: Check for a NULL domain ontology
As a matter of fact, it'll be what happens most often. Spotted by
Coverity.
CID: #354739
src/miners/rss/tracker-main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/miners/rss/tracker-main.c b/src/miners/rss/tracker-main.c
index 5adca3ce0..225c46615 100644
--- a/src/miners/rss/tracker-main.c
+++ b/src/miners/rss/tracker-main.c
@@ -296,7 +296,7 @@ main (int argc, char **argv)
g_object_unref (miner);
g_object_unref (connection);
g_object_unref (proxy);
- tracker_domain_ontology_unref (domain_ontology);
+ g_clear_pointer (&domain_ontology, tracker_domain_ontology_unref);
return EXIT_SUCCESS;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]