From 099324dcb930c77add9100df9c059d4485f78658 Mon Sep 17 00:00:00 2001 From: rbuj Date: Fri, 4 Dec 2020 15:06:30 +0100 Subject: geyes: Remove duplicated NULL check --- geyes/src/geyes.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/geyes/src/geyes.c b/geyes/src/geyes.c index 6bdf49b1..8f763b74 100644 --- a/geyes/src/geyes.c +++ b/geyes/src/geyes.c @@ -314,20 +314,16 @@ destroy_cb (GObject *object, g_object_unref (eyes_applet->pupil_image); eyes_applet->pupil_image = NULL; - if (eyes_applet->theme_dir) - g_free (eyes_applet->theme_dir); + g_free (eyes_applet->theme_dir); eyes_applet->theme_dir = NULL; - if (eyes_applet->theme_name) - g_free (eyes_applet->theme_name); + g_free (eyes_applet->theme_name); eyes_applet->theme_name = NULL; - if (eyes_applet->eye_filename) - g_free (eyes_applet->eye_filename); + g_free (eyes_applet->eye_filename); eyes_applet->eye_filename = NULL; - if (eyes_applet->pupil_filename) - g_free (eyes_applet->pupil_filename); + g_free (eyes_applet->pupil_filename); eyes_applet->pupil_filename = NULL; if (eyes_applet->prop_box.pbox) -- cgit v1.2.1