summaryrefslogtreecommitdiff
path: root/src/benchmarks/evas/evas_bench_saver.c
diff options
context:
space:
mode:
authorSebastian Dransfeld <sd@tango.flipp.net>2014-08-14 13:26:11 +0200
committerSebastian Dransfeld <sd@tango.flipp.net>2014-08-14 13:30:48 +0200
commitb9c2a081059dfe8e73e83e6da1d938e0a2a715fb (patch)
treecd2d9241bd5fed718a673ec16d72c47ef9f11079 /src/benchmarks/evas/evas_bench_saver.c
parent5a722ca6fefe359e634479bf1ba1b39443324f3d (diff)
benchmarks: close mkstemp file
eina_file_mkstemp returns an open filedescriptor, so we need to close it.
Diffstat (limited to '')
-rw-r--r--src/benchmarks/evas/evas_bench_saver.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/benchmarks/evas/evas_bench_saver.c b/src/benchmarks/evas/evas_bench_saver.c
index 51f661a7b4..21381fae37 100644
--- a/src/benchmarks/evas/evas_bench_saver.c
+++ b/src/benchmarks/evas/evas_bench_saver.c
@@ -49,10 +49,13 @@ evas_bench_saver_tgv(int request)
49 const char *source; 49 const char *source;
50 Eina_Tmpstr *dest; 50 Eina_Tmpstr *dest;
51 Evas_Object *o; 51 Evas_Object *o;
52 int fd;
52 int i; 53 int i;
53 54
54 source = _test_image_get("mars_rover_panorama_half-size.jpg"); 55 source = _test_image_get("mars_rover_panorama_half-size.jpg");
55 eina_file_mkstemp("evas_saver_benchXXXXXX.tgv", &dest); 56 fd = eina_file_mkstemp("evas_saver_benchXXXXXX.tgv", &dest);
57 if (fd < 0) return;
58 close(fd);
56 59
57 o = evas_object_image_add(e); 60 o = evas_object_image_add(e);
58 evas_object_image_file_set(o, source, NULL); 61 evas_object_image_file_set(o, source, NULL);