forked from enlightenment/efl
elm - fix data leak if config version bad in property.
This commit is contained in:
parent
572538e490
commit
8e894e9193
|
@ -207,7 +207,10 @@ _prop_config_get(void)
|
||||||
/* Most obvious case, new version and we are still linked to
|
/* Most obvious case, new version and we are still linked to
|
||||||
* whatever was there before, we just ignore until user restarts us */
|
* whatever was there before, we just ignore until user restarts us */
|
||||||
if (config_data->config_version > ELM_CONFIG_VERSION)
|
if (config_data->config_version > ELM_CONFIG_VERSION)
|
||||||
|
{
|
||||||
|
_config_free(config_data);
|
||||||
return EINA_TRUE;
|
return EINA_TRUE;
|
||||||
|
}
|
||||||
/* What in the case the version is older? Do we even support those
|
/* What in the case the version is older? Do we even support those
|
||||||
* cases or we only check for equality above? */
|
* cases or we only check for equality above? */
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue