summaryrefslogtreecommitdiff
path: root/src/bin/edje
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/edje')
-rw-r--r--src/bin/edje/edje_pick.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/bin/edje/edje_pick.c b/src/bin/edje/edje_pick.c
index a05171de3a..2c2e6df263 100644
--- a/src/bin/edje/edje_pick.c
+++ b/src/bin/edje/edje_pick.c
@@ -657,8 +657,6 @@ _edje_pick_header_make(Edje_File *out_file , Edje_File *edf, Eina_List *ifs)
657 } 657 }
658 } 658 }
659 659
660 _edje_cache_file_unref(edf);
661
662 return status; 660 return status;
663} 661}
664 662
@@ -1344,6 +1342,7 @@ main(int argc, char **argv)
1344 k = _edje_pick_header_make(out_file, edf, inp_files); 1342 k = _edje_pick_header_make(out_file, edf, inp_files);
1345 if (k != EDJE_PICK_NO_ERROR) 1343 if (k != EDJE_PICK_NO_ERROR)
1346 { 1344 {
1345 _edje_cache_file_unref(edf);
1347 eet_close(ef); 1346 eet_close(ef);
1348 return _edje_pick_cleanup(inp_files, out_file, k); 1347 return _edje_pick_cleanup(inp_files, out_file, k);
1349 } 1348 }
@@ -1365,6 +1364,7 @@ main(int argc, char **argv)
1365 if (!ce || (ce->id < 0)) 1364 if (!ce || (ce->id < 0))
1366 { 1365 {
1367 EINA_LOG_ERR("Failed to find group <%s> id\n", name1); 1366 EINA_LOG_ERR("Failed to find group <%s> id\n", name1);
1367 _edje_cache_file_unref(edf);
1368 return _edje_pick_cleanup(inp_files, out_file, 1368 return _edje_pick_cleanup(inp_files, out_file,
1369 EDJE_PICK_GROUP_NOT_FOUND); 1369 EDJE_PICK_GROUP_NOT_FOUND);
1370 } 1370 }
@@ -1379,6 +1379,7 @@ main(int argc, char **argv)
1379 if (!edc) 1379 if (!edc)
1380 { 1380 {
1381 EINA_LOG_ERR("Failed to read group <%s> id <%d>\n", name1, ce->id); 1381 EINA_LOG_ERR("Failed to read group <%s> id <%d>\n", name1, ce->id);
1382 _edje_cache_file_unref(edf);
1382 return _edje_pick_cleanup(inp_files, out_file, 1383 return _edje_pick_cleanup(inp_files, out_file,
1383 EDJE_PICK_GROUP_NOT_FOUND); 1384 EDJE_PICK_GROUP_NOT_FOUND);
1384 } 1385 }
@@ -1401,6 +1402,7 @@ main(int argc, char **argv)
1401 } 1402 }
1402 1403
1403 free(edc); 1404 free(edc);
1405 _edje_cache_file_unref(edf);
1404 edje_cache_emp_free(ce); 1406 edje_cache_emp_free(ce);
1405 eet_close(ef); 1407 eet_close(ef);
1406 } 1408 }