diff options
author | rbuj <[email protected]> | 2020-12-04 15:22:29 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2020-12-10 15:35:41 +0100 |
commit | 89c85c3ca0d81ac0db527c14e5a3e6daad86dd72 (patch) | |
tree | daf45c827fb8c3814ffda9b0f91c3791612883e8 /geyes | |
parent | 672042924f6a857d86c480c6cc76550d4eb718fc (diff) | |
download | mate-applets-89c85c3ca0d81ac0db527c14e5a3e6daad86dd72.tar.bz2 mate-applets-89c85c3ca0d81ac0db527c14e5a3e6daad86dd72.tar.xz |
geyes: Use g_clear_error
Diffstat (limited to 'geyes')
-rw-r--r-- | geyes/src/geyes.c | 3 | ||||
-rw-r--r-- | geyes/src/themes.c | 3 |
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); } } |