edje_decc: modified fclose location
authorJunsuChoi <jsuya.choi@samsung.com>
Tue, 20 Sep 2016 14:23:29 +0000 (23:23 +0900)
committerJaehyun Cho <jae_hyun.cho@samsung.com>
Wed, 21 Sep 2016 00:41:48 +0000 (09:41 +0900)
modified fclose location. because of file pointer can become NULL.

Signed-off-by: Jaehyun Cho <jae_hyun.cho@samsung.com>
src/bin/edje/edje_decc.c

index 2f5fe96..fdbc903 100644 (file)
@@ -566,9 +566,9 @@ output(void)
                     {
                        if (fwrite(data, data_size, 1, f) != 1)
                          ERR("Could not write sound: %s", strerror(errno));
+                       fclose(f);
                     }
                   else ERR("Could not open for writing sound: %s: %s", out1, strerror(errno));
-                  fclose(f);
               }
           }
      }