forked from enlightenment/efl
Evas: Fix potential crash with extraneous eet_shutdown
Shutdown eet only if it was actually initialized. This fixes make check (for me) after applying the previous patch. It seems on my machine, the gl cache files are not saved properly from within the make check environment.
This commit is contained in:
parent
e6bba4d91c
commit
f64e195844
|
@ -819,6 +819,9 @@ _surface_cap_cache_save()
|
||||||
char cap_file_path[PATH_MAX];
|
char cap_file_path[PATH_MAX];
|
||||||
char tmp_file[PATH_MAX];
|
char tmp_file[PATH_MAX];
|
||||||
|
|
||||||
|
/* use eet */
|
||||||
|
if (!eet_init()) return 0;
|
||||||
|
|
||||||
if (!evas_gl_common_file_cache_dir_check(cap_dir_path, sizeof(cap_dir_path)))
|
if (!evas_gl_common_file_cache_dir_check(cap_dir_path, sizeof(cap_dir_path)))
|
||||||
{
|
{
|
||||||
res = evas_gl_common_file_cache_mkpath(cap_dir_path);
|
res = evas_gl_common_file_cache_mkpath(cap_dir_path);
|
||||||
|
@ -834,9 +837,6 @@ _surface_cap_cache_save()
|
||||||
if (tmpfd < 0) goto error;
|
if (tmpfd < 0) goto error;
|
||||||
close(tmpfd);
|
close(tmpfd);
|
||||||
|
|
||||||
/* use eet */
|
|
||||||
if (!eet_init()) goto error;
|
|
||||||
|
|
||||||
et = eet_open(tmp_file, EET_FILE_MODE_WRITE);
|
et = eet_open(tmp_file, EET_FILE_MODE_WRITE);
|
||||||
if (!et) goto error;
|
if (!et) goto error;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue