[gnome-session] gsm-autostart-app: Remove unused GError
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-session] gsm-autostart-app: Remove unused GError
- Date: Tue, 5 Mar 2013 19:27:24 +0000 (UTC)
commit 130721b7b26eb865a8ab6c72fa3fac1be1eb4a4d
Author: Colin Walters <walters verbum org>
Date: Tue Mar 5 14:23:11 2013 -0500
gsm-autostart-app: Remove unused GError
The call to g_error_free (NULL) triggers a g_critical() when booting
gnome-ostree which doesn't have Orca and thus triggers the TryExec
notification.
gnome-session/gsm-autostart-app.c | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/gnome-session/gsm-autostart-app.c b/gnome-session/gsm-autostart-app.c
index 61fee13..87c6aec 100644
--- a/gnome-session/gsm-autostart-app.c
+++ b/gnome-session/gsm-autostart-app.c
@@ -679,8 +679,6 @@ static void
gsm_autostart_app_set_desktop_filename (GsmAutostartApp *app,
const char *desktop_filename)
{
- GError *error;
-
if (app->priv->app_info != NULL) {
g_clear_object (&app->priv->app_info);
g_free (app->priv->desktop_id);
@@ -692,11 +690,9 @@ gsm_autostart_app_set_desktop_filename (GsmAutostartApp *app,
app->priv->desktop_id = g_path_get_basename (desktop_filename);
- error = NULL;
app->priv->app_info = g_desktop_app_info_new_from_filename (desktop_filename);
if (app->priv->app_info == NULL) {
g_warning ("Could not parse desktop file %s or it references a not found TryExec binary",
desktop_filename);
- g_error_free (error);
return;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]