ephoto_config: fix segv on start
This commit is contained in:
parent
a4eb00e925
commit
7714e3756b
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue