Commit f9e7de0f authored by Sam Thursfield's avatar Sam Thursfield

Fix free of unused memory when --domain-ontology flag is passed

This fixes a regression from 8b6bc5b7.
parent eebe1e15
Pipeline #33203 passed with stage
in 1 minute and 57 seconds
......@@ -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:");
......
......@@ -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:");
......
......@@ -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);
......
......@@ -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",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment