summaryrefslogtreecommitdiff
path: root/src/media-thumb-internal.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/media-thumb-internal.c')
-rwxr-xr-xsrc/media-thumb-internal.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/media-thumb-internal.c b/src/media-thumb-internal.c
index f9ad343..c6c4a57 100755
--- a/src/media-thumb-internal.c
+++ b/src/media-thumb-internal.c
@@ -594,6 +594,7 @@ int _media_thumb_get_thumb_from_exif(ExifData *ed,
if (err != MS_MEDIA_ERR_NONE) {
thumb_err("_media_thumb_rotate_thumb falied: %d", err);
SAFE_FREE(thumb_info->data);
+ SAFE_FREE(raw_image);
return err;
}
@@ -1200,7 +1201,7 @@ int _media_thumb_get_hash_name(const char *file_full_path, char *thumb_hash_path
_media_thumb_get_file_ext(file_full_path, file_ext, sizeof(file_ext));
ret = ms_user_get_storage_type(uid, file_full_path, &storage_type);
- if((ret != MS_MEDIA_ERR_NONE) || ((storage_type != MS_USER_STORAGE_INTERNAL) && (storage_type != MS_USER_STORAGE_EXTERNAL))) {
+ if ((ret != MS_MEDIA_ERR_NONE) || ((storage_type != MS_USER_STORAGE_INTERNAL) && (storage_type != MS_USER_STORAGE_EXTERNAL))) {
thumb_err_slog("origin path(%s) is invalid. err : [%d] storage_type [%d]", file_full_path, ret, storage_type);
return MS_MEDIA_ERR_INVALID_PARAMETER;
}