[tracker-miners] Fix free of unused memory when --domain-ontology flag is passed
- From: Sam Thursfield <sthursfield src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker-miners] Fix free of unused memory when --domain-ontology flag is passed
- Date: Sun, 30 Sep 2018 10:34:33 +0000 (UTC)
commit f9e7de0fe0549b009defc68ba37ba2516a03f49c
Author: Sam Thursfield <sam afuera me uk>
Date: Sun Sep 30 12:35:06 2018 +0200
Fix free of unused memory when --domain-ontology flag is passed
This fixes a regression from 8b6bc5b71f7be3af55b1f3ad18f0d8c9612a37a8.
src/miners/apps/tracker-main.c | 3 +--
src/miners/fs/tracker-main.c | 3 +--
src/miners/rss/tracker-main.c | 3 +--
src/tracker-extract/tracker-main.c | 3 +--
4 files changed, 4 insertions(+), 8 deletions(-)
---
diff --git a/src/miners/apps/tracker-main.c b/src/miners/apps/tracker-main.c
index 4cffd7458..ecf85b784 100644
--- a/src/miners/apps/tracker-main.c
+++ b/src/miners/apps/tracker-main.c
@@ -186,7 +186,7 @@ main (gint argc, gchar *argv[])
GDBusConnection *connection;
TrackerMinerProxy *proxy;
TrackerDomainOntology *domain_ontology;
- gchar *domain_name, *dbus_name;
+ gchar *dbus_name;
main_loop = NULL;
@@ -253,7 +253,6 @@ main (gint argc, gchar *argv[])
G_BUS_NAME_WATCHER_FLAGS_NONE,
NULL, on_domain_vanished,
main_loop, NULL);
- g_free (domain_name);
}
g_message ("Checking if we're running as a daemon:");
diff --git a/src/miners/fs/tracker-main.c b/src/miners/fs/tracker-main.c
index 09a838942..9acaeef99 100644
--- a/src/miners/fs/tracker-main.c
+++ b/src/miners/fs/tracker-main.c
@@ -667,7 +667,7 @@ main (gint argc, gchar *argv[])
TrackerMinerProxy *proxy;
GDBusConnection *connection;
TrackerDomainOntology *domain_ontology;
- gchar *domain_name, *dbus_name;
+ gchar *dbus_name;
main_loop = NULL;
@@ -754,7 +754,6 @@ main (gint argc, gchar *argv[])
G_BUS_NAME_WATCHER_FLAGS_NONE,
NULL, on_domain_vanished,
main_loop, NULL);
- g_free (domain_name);
}
g_message ("Checking if we're running as a daemon:");
diff --git a/src/miners/rss/tracker-main.c b/src/miners/rss/tracker-main.c
index c5ea74bc2..152b16241 100644
--- a/src/miners/rss/tracker-main.c
+++ b/src/miners/rss/tracker-main.c
@@ -79,7 +79,7 @@ main (int argc, char **argv)
GDBusConnection *connection;
TrackerMinerProxy *proxy;
TrackerDomainOntology *domain_ontology;
- gchar *domain_name, *dbus_name;
+ gchar *dbus_name;
setlocale (LC_ALL, "");
@@ -222,7 +222,6 @@ main (int argc, char **argv)
G_BUS_NAME_WATCHER_FLAGS_NONE,
NULL, on_domain_vanished,
loop, NULL);
- g_free (domain_name);
}
g_main_loop_run (loop);
diff --git a/src/tracker-extract/tracker-main.c b/src/tracker-extract/tracker-main.c
index 1d3e32567..52c2c8c44 100644
--- a/src/tracker-extract/tracker-main.c
+++ b/src/tracker-extract/tracker-main.c
@@ -351,7 +351,7 @@ main (int argc, char *argv[])
GDBusConnection *connection;
TrackerMinerProxy *proxy;
TrackerDomainOntology *domain_ontology;
- gchar *domain_name, *dbus_name;
+ gchar *dbus_name;
bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
@@ -499,7 +499,6 @@ main (int argc, char *argv[])
G_BUS_NAME_WATCHER_FLAGS_NONE,
NULL, on_domain_vanished,
main_loop, NULL);
- g_free (domain_name);
}
g_signal_connect (decorator, "finished",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]