more valgrind fixes on efreet.

SVN revision: 41121
This commit is contained in:
Gustavo Sverzut Barbieri 2009-06-20 06:50:01 +00:00
parent 8021f6beeb
commit 44d66495ca
2 changed files with 6 additions and 1 deletions

View File

@ -1783,10 +1783,13 @@ efreet_desktop_cb_download_complete(void *data, const char *file __UNUSED__,
if (f->command->num_pending <= 0)
{
Eina_List *execs;
char *exec;
execs = efreet_desktop_command_build(f->command);
/* TODO: Need to handle the return value from efreet_desktop_command_execs_process */
efreet_desktop_command_execs_process(f->command, execs);
eina_list_free(execs);
EINA_LIST_FREE(execs, exec)
free(exec);
efreet_desktop_command_free(f->command);
}
}

View File

@ -110,6 +110,8 @@ efreet_ini_parse(const char *file)
struct stat file_stat;
int line_length, left;
if (!file) return NULL;
f = fopen(file, "rb");
if (!f) return NULL;