ecore: fix memory leak when shutding down the application.

Reviewed-by: Xavi Artigas <xavierartigas@yahoo.es>
Differential Revision: https://phab.enlightenment.org/D7653
This commit is contained in:
Cedric BAIL 2019-01-11 17:58:23 -08:00
parent 7889f71c7b
commit 445cfab193
1 changed files with 3 additions and 0 deletions

View File

@ -173,6 +173,7 @@ efl_loop_exit_code_process(Eina_Value *value)
out = stderr;
}
fprintf(out, "%s\n", msg);
free(msg);
}
return r;
}
@ -361,6 +362,8 @@ _efl_loop_efl_object_destructor(Eo *obj, Efl_Loop_Data *pd)
pd->env.environ_copy = NULL;
eina_lock_release(&_environ_lock);
eina_value_flush(&pd->exit_code);
efl_destructor(efl_super(obj, EFL_LOOP_CLASS));
}