summaryrefslogtreecommitdiff
path: root/src/lib/ethumb/ethumb.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/ethumb/ethumb.c')
-rw-r--r--src/lib/ethumb/ethumb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/ethumb/ethumb.c b/src/lib/ethumb/ethumb.c
index ad49444031..eab57a2d8f 100644
--- a/src/lib/ethumb/ethumb.c
+++ b/src/lib/ethumb/ethumb.c
@@ -1354,12 +1354,13 @@ ethumb_image_save(Ethumb *e)
1354 1354
1355 dname = ecore_file_dir_get(e->thumb_path); 1355 dname = ecore_file_dir_get(e->thumb_path);
1356 r = ecore_file_mkpath(dname); 1356 r = ecore_file_mkpath(dname);
1357 free(dname);
1358 if (!r) 1357 if (!r)
1359 { 1358 {
1360 ERR("could not create directory '%s'", dname); 1359 ERR("could not create directory '%s'", dname);
1360 free(dname);
1361 return EINA_FALSE; 1361 return EINA_FALSE;
1362 } 1362 }
1363 free(dname);
1363 1364
1364 snprintf(flags, sizeof(flags), "quality=%d compress=%d", 1365 snprintf(flags, sizeof(flags), "quality=%d compress=%d",
1365 e->quality, e->compress); 1366 e->quality, e->compress);