summaryrefslogtreecommitdiff
path: root/src/lib/evas/common/evas_model_load.c
diff options
context:
space:
mode:
authorBogdan Devichev <b.devichev@samsung.com>2014-12-17 15:48:00 +0200
committerCedric BAIL <cedric@osg.samsung.com>2014-12-23 21:20:21 +0100
commitce36f8f5ad1e516d077ea935adf09c74c6ba403f (patch)
treebbd8a5645d5f1b2e836084e25147e81474d99ac1 /src/lib/evas/common/evas_model_load.c
parentdd605257984478674d2a5d4946a870f167e2bf69 (diff)
evas: better example of _mmap_set and resources for it are added.
Diffstat (limited to '')
-rw-r--r--src/lib/evas/common/evas_model_load.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/lib/evas/common/evas_model_load.c b/src/lib/evas/common/evas_model_load.c
index e00290e315..bef10ba28c 100644
--- a/src/lib/evas/common/evas_model_load.c
+++ b/src/lib/evas/common/evas_model_load.c
@@ -38,14 +38,19 @@ void
38evas_common_load_model_from_file(Evas_3D_Mesh *model, const char *file) 38evas_common_load_model_from_file(Evas_3D_Mesh *model, const char *file)
39{ 39{
40 Eina_File *tmp_file = eina_file_open(file, 0); 40 Eina_File *tmp_file = eina_file_open(file, 0);
41
42 if (tmp_file == NULL)
43 {
44 ERR("Failed to open file %s\n", file);
45 ERR("Failed to initialize loader.");
46 return;
47 }
48
41 Eina_File *e_file = eina_file_dup(tmp_file); 49 Eina_File *e_file = eina_file_dup(tmp_file);
42 50
43 if (e_file == NULL) 51 if (e_file == NULL)
44 { 52 {
45 ERR("Failed to open file %s\n", file);
46 eina_file_close(tmp_file); 53 eina_file_close(tmp_file);
47 eina_file_close(e_file);
48 e_file = NULL;
49 file = NULL; 54 file = NULL;
50 ERR("Failed to initialize loader."); 55 ERR("Failed to initialize loader.");
51 return; 56 return;
@@ -66,9 +71,6 @@ evas_common_load_model_from_eina_file(Evas_3D_Mesh *model, Eina_File *file)
66 71
67 if (e_file == NULL) 72 if (e_file == NULL)
68 { 73 {
69 ERR("Failed to open file %s\n", file);
70 eina_file_close(e_file);
71 e_file = NULL;
72 ERR("Failed to initialize loader."); 74 ERR("Failed to initialize loader.");
73 return; 75 return;
74 } 76 }