[tracker] tracker-control: Free GError if getting TrackerMinerManager fails
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] tracker-control: Free GError if getting TrackerMinerManager fails
- Date: Thu, 2 Jun 2011 16:46:06 +0000 (UTC)
commit e3c02fcabbfa531e6ce29edd1ac5824ba336fc21
Author: Martyn Russell <martyn lanedo com>
Date: Thu Jun 2 17:11:10 2011 +0100
tracker-control: Free GError if getting TrackerMinerManager fails
src/tracker-control/tracker-control-status.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/tracker-control/tracker-control-status.c b/src/tracker-control/tracker-control-status.c
index f132eb9..757f85e 100644
--- a/src/tracker-control/tracker-control-status.c
+++ b/src/tracker-control/tracker-control-status.c
@@ -520,10 +520,13 @@ tracker_control_status_run (void)
GSList *miners_running;
GSList *l;
+ /* Don't auto-start the miners here */
manager = tracker_miner_manager_new_full (FALSE, &error);
if (!manager) {
- g_printerr ("Couldn't create manager: '%s'\n",
+ g_printerr (_("Could not get status, manager could not be created, %s"),
error ? error->message : "unknown error");
+ g_printerr ("\n");
+ g_clear_error (&error);
return EXIT_FAILURE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]