elm - fix data leak if config version bad in property.

This commit is contained in:
Carsten Haitzler 2014-08-07 13:56:03 +09:00
parent 572538e490
commit 8e894e9193
1 changed files with 4 additions and 1 deletions

View File

@ -207,7 +207,10 @@ _prop_config_get(void)
/* Most obvious case, new version and we are still linked to
* whatever was there before, we just ignore until user restarts us */
if (config_data->config_version > ELM_CONFIG_VERSION)
return EINA_TRUE;
{
_config_free(config_data);
return EINA_TRUE;
}
/* What in the case the version is older? Do we even support those
* cases or we only check for equality above? */