Commit 2964d1b7 authored by Cedric BAIL's avatar Cedric BAIL

eet: force closing all file on shutdown.


SVN revision: 70928
parent 8a73b16d
......@@ -582,3 +582,7 @@
2012-04-26 Carsten Haitzler (The Rasterman)
1.6.0 release
2012-05-11 Cedric Bail
* Force destruction of all pending file when shuting down eet.
Eet 1.7.0
Changes since Eet 1.6.0:
--------------------------
Fixes:
* Force destruction of all pending file when shuting down eet.
Eet 1.6.0
Changes since Eet 1.5.0:
......
......@@ -633,6 +633,33 @@ eet_shutdown(void)
return eet_init_count;
eet_clearcache();
if (eet_writers_num || eet_readers_num)
{
Eet_File **closelist = NULL;
int num = 0;
int i;
closelist = alloca((eet_writers_num + eet_readers_num)
* sizeof(Eet_File *));
for (i = 0; i < eet_writers_num; i++)
{
closelist[num++] = eet_writers[i];
eet_writers[i]->delete_me_now = 1;
}
for (i = 0; i < eet_readers_num; i++)
{
closelist[num++] = eet_readers[i];
eet_readers[i]->delete_me_now = 1;
}
for (i = 0; i < num; i++)
{
ERR("File '%s' is still open !", closelist[i]->path);
eet_internal_close(closelist[i], EINA_TRUE);
}
}
eet_node_shutdown();
eet_mempool_shutdown();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment