summaryrefslogtreecommitdiff
path: root/geyes/src
diff options
context:
space:
mode:
Diffstat (limited to 'geyes/src')
-rw-r--r--geyes/src/geyes.c3
-rw-r--r--geyes/src/themes.c3
2 files changed, 2 insertions, 4 deletions
diff --git a/geyes/src/geyes.c b/geyes/src/geyes.c
index a1e3a664..f5458caf 100644
--- a/geyes/src/geyes.c
+++ b/geyes/src/geyes.c
@@ -358,8 +358,7 @@ help_cb (GtkAction *action,
gtk_window_set_screen (GTK_WINDOW (dialog),
gtk_widget_get_screen (GTK_WIDGET (eyes_applet->applet)));
gtk_widget_show (dialog);
- g_error_free (error);
- error = NULL;
+ g_clear_error (&error);
}
}
diff --git a/geyes/src/themes.c b/geyes/src/themes.c
index 1754b9e3..0a2530d1 100644
--- a/geyes/src/themes.c
+++ b/geyes/src/themes.c
@@ -238,8 +238,7 @@ phelp_cb (GtkDialog *dialog)
gtk_window_set_screen (GTK_WINDOW (error_dialog),
gtk_widget_get_screen (GTK_WIDGET (dialog)));
gtk_widget_show (error_dialog);
- g_error_free (error);
- error = NULL;
+ g_clear_error (&error);
}
}