ephoto_config: fix segv on start

This commit is contained in:
Al Poole 2017-12-18 20:35:23 +00:00
parent a4eb00e925
commit 7714e3756b
1 changed files with 7 additions and 4 deletions

View File

@ -764,10 +764,13 @@ ephoto_config_save(Ephoto *ephoto)
void void
ephoto_config_free(Ephoto *ephoto) ephoto_config_free(Ephoto *ephoto)
{ {
eina_stringshare_del(ephoto->config->directory); if (ephoto->config)
eina_stringshare_del(ephoto->config->slideshow_transition); {
free(ephoto->config); eina_stringshare_del(ephoto->config->directory);
ephoto->config = NULL; eina_stringshare_del(ephoto->config->slideshow_transition);
free(ephoto->config);
ephoto->config = NULL;
}
} }
Eina_Bool Eina_Bool