summaryrefslogtreecommitdiff
path: root/src/modules/evas/model_loaders
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2015-12-29 15:41:51 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2015-12-29 16:18:36 +0900
commitb13502f20af7ae4fc5c10cb024c7274e2c86d66c (patch)
tree9f89f90bd88c5483ab2edd683f13982ee75c667a /src/modules/evas/model_loaders
parent60e6030f3636ffc97235326a42afaa5aa4598670 (diff)
Evas 3d: Fix some potential crashes
Those were happening before the previous patches.
Diffstat (limited to 'src/modules/evas/model_loaders')
-rw-r--r--src/modules/evas/model_loaders/eet/evas_model_load_eet.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/evas/model_loaders/eet/evas_model_load_eet.c b/src/modules/evas/model_loaders/eet/evas_model_load_eet.c
index e049e2c..434852d 100644
--- a/src/modules/evas/model_loaders/eet/evas_model_load_eet.c
+++ b/src/modules/evas/model_loaders/eet/evas_model_load_eet.c
@@ -115,9 +115,9 @@ evas_model_load_file_eet(Evas_Canvas3D_Mesh *mesh, Eina_File *file)
115 115
116 eet_close(ef); 116 eet_close(ef);
117 117
118 if ((eet_file->mesh == NULL) || (eet_file->header == NULL)) 118 if (!eet_file || !eet_file->mesh || !eet_file->header)
119 { 119 {
120 ERR("Reading of file is failed."); 120 ERR("Failed to read model file");
121 _evas_canvas3d_eet_file_free(eet_file); 121 _evas_canvas3d_eet_file_free(eet_file);
122 return; 122 return;
123 } 123 }