From 485c1f48b3dee12becac9427803c91fec63b5ab3 Mon Sep 17 00:00:00 2001 From: codewarrior Date: Thu, 8 Dec 2005 08:03:58 +0000 Subject: [PATCH] - dont forget to close the eet file. SVN revision: 18908 --- src/bin/e_thumb.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/bin/e_thumb.c b/src/bin/e_thumb.c index 17948142b..5e7e2cf40 100644 --- a/src/bin/e_thumb.c +++ b/src/bin/e_thumb.c @@ -153,6 +153,7 @@ e_thumb_geometry_get(char *file, int *w, int *h, int from_eet) eet_file = _e_thumb_file_id(file); if(!eet_file) { + eet_close(ef); if(w) *w = -1; if(h) *h = -1; return; @@ -160,6 +161,7 @@ e_thumb_geometry_get(char *file, int *w, int *h, int from_eet) ef = eet_open(eet_file, EET_FILE_MODE_READ); if (!ef) { + eet_close(ef); if(w) *w = -1; if(h) *h = -1; return; @@ -170,6 +172,7 @@ e_thumb_geometry_get(char *file, int *w, int *h, int from_eet) ef = eet_open(file, EET_FILE_MODE_READ); if (!ef) { + eet_close(ef); if(w) *w = -1; if(h) *h = -1; return; @@ -178,10 +181,12 @@ e_thumb_geometry_get(char *file, int *w, int *h, int from_eet) if(!eet_data_image_header_read(ef, "/thumbnail/data/", w, h, NULL, NULL, NULL, NULL)) { + eet_close(ef); if(w) *w = -1; if(h) *h = -1; return; } + eet_close(ef); } /* return true if the saved thumb exists OR if its an eap */