netstar pushed a commit to branch master.

http://git.enlightenment.org/apps/ephoto.git/commit/?id=7714e3756b035c581094154938749355a08e2d03

commit 7714e3756b035c581094154938749355a08e2d03
Author: Al Poole <nets...@gmail.com>
Date:   Mon Dec 18 20:35:23 2017 +0000

    ephoto_config: fix segv on start
---
 src/bin/ephoto_config.c | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/src/bin/ephoto_config.c b/src/bin/ephoto_config.c
index 5907a3d..f3b871d 100644
--- a/src/bin/ephoto_config.c
+++ b/src/bin/ephoto_config.c
@@ -764,10 +764,13 @@ ephoto_config_save(Ephoto *ephoto)
 void
 ephoto_config_free(Ephoto *ephoto)
 {
-   eina_stringshare_del(ephoto->config->directory);
-   eina_stringshare_del(ephoto->config->slideshow_transition);
-   free(ephoto->config);
-   ephoto->config = NULL;
+   if (ephoto->config)
+     {
+        eina_stringshare_del(ephoto->config->directory);
+        eina_stringshare_del(ephoto->config->slideshow_transition);
+        free(ephoto->config);
+        ephoto->config = NULL;
+     }
 }
 
 Eina_Bool

-- 


Reply via email to