[tracker/tracker-control-races-condition-fixes: 2/5] 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-races-condition-fixes: 2/5] tracker-control: Free GError if getting TrackerMinerManager fails
- Date: Thu, 2 Jun 2011 16:26:11 +0000 (UTC)
commit 91aa5e41db58484ac3a280e2d60ad3aa4e1ed8b6
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 0d114ac..7f407e3 100644
--- a/src/tracker-control/tracker-control-status.c
+++ b/src/tracker-control/tracker-control-status.c
@@ -494,10 +494,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]