eet: Fix memory leak 53/88753/2
authorjiin.moon <jiin.moon@samsung.com>
Tue, 20 Sep 2016 11:59:44 +0000 (20:59 +0900)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Wed, 21 Sep 2016 02:28:27 +0000 (19:28 -0700)
If eet_mesh/eet_header is not NULL,
this address should be freed by _evas_canvas3d_eet_file_free api

@tizen_fix
Change-Id: I65ae0125cba7faab9429c961be2468d86425b31a

src/modules/evas/model_savers/eet/evas_model_save_eet.c

index ff43a3f..3f27721 100644 (file)
@@ -171,11 +171,9 @@ evas_model_save_file_eet(const Evas_Canvas3D_Mesh *mesh,
    _set_material_to_eet_file_from_mesh(eet_mesh, eet_header, f);
    _set_frame_to_eet_file_from_mesh(eet_mesh);
 
-   if (ef == NULL)
+   if (ef == NULL) /*TIZEN_ONLY(20160920): Fix memory leak */
      {
         ERR("Opening of file is failed.");
-        free(eet_mesh);
-        free(eet_header);
         _evas_canvas3d_eet_file_free();
         return;
      }