billiob pushed a commit to branch master.

http://git.enlightenment.org/apps/terminology.git/commit/?id=ff9b4aacc5bd0f8bb0eddb946b978c810f10135b

commit ff9b4aacc5bd0f8bb0eddb946b978c810f10135b
Author: Boris Faure <bill...@gmail.com>
Date:   Tue Sep 8 23:10:46 2020 +0200

    config: eet_data_descriptor_free accepts NULL
---
 src/bin/config.c | 16 ++++++----------
 1 file changed, 6 insertions(+), 10 deletions(-)

diff --git a/src/bin/config.c b/src/bin/config.c
index 282f8a9..5b2b484 100644
--- a/src/bin/config.c
+++ b/src/bin/config.c
@@ -200,16 +200,12 @@ config_init(void)
 void
 config_shutdown(void)
 {
-   if (edd_base)
-     {
-        eet_data_descriptor_free(edd_base);
-        edd_base = NULL;
-     }
-   if (edd_color)
-     {
-        eet_data_descriptor_free(edd_color);
-        edd_color = NULL;
-     }
+   eet_data_descriptor_free(edd_base);
+   edd_base = NULL;
+
+   eet_data_descriptor_free(edd_color);
+   edd_color = NULL;
+
    efreet_shutdown();
 }
 

-- 


Reply via email to