enjoy: Plug memory leak when downloading a cover art that already existed on the cache directory

SVN revision: 62841
This commit is contained in:
Leandro Pereira 2011-08-25 22:35:33 +00:00
parent 7862272a4a
commit f6bb4a8aaa
1 changed files with 5 additions and 1 deletions

View File

@ -397,7 +397,11 @@ lastfm_cover_download(char *url,
ERR("could not obtain local path for url %s", url);
return EINA_FALSE;
}
if (ecore_file_exists(dest)) return EINA_TRUE;
if (ecore_file_exists(dest))
{
free(dest);
return EINA_TRUE;
}
lcdd->data = data;
lcdd->local_file = dest;