reorder some stuff in static_grab to be more successful

SVN revision: 80842
This commit is contained in:
Mike Blumenkrantz 2012-12-13 13:11:21 +00:00
parent 3d9ac54d21
commit 44442a8e45
1 changed files with 7 additions and 3 deletions

View File

@ -241,12 +241,16 @@ _e_static_grab_x(E_Static_Grab *grab)
Eina_Iterator *it;
Eina_File *f;
module = calloc(1, sizeof (E_Static_Grab_Module));
if (!module) return ;
f = eina_file_open("/var/log/Xorg.0.log", EINA_FALSE);
if (!f) return ;
module = calloc(1, sizeof (E_Static_Grab_Module));
if (!module)
{
eina_file_close(f);
return ;
}
it = eina_file_map_lines(f);
EINA_ITERATOR_FOREACH(it, line)
{