aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/ephoto_config.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/ephoto_config.c')
-rw-r--r--src/bin/ephoto_config.c11
1 files 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