projects
/
platform
/
core
/
uifw
/
capi-ui-sticker.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
399d356
)
Fix memory leak issue
87/232487/1
author
Jihoon Kim
<jihoon48.kim@samsung.com>
Wed, 6 May 2020 01:22:27 +0000
(10:22 +0900)
committer
Jihoon Kim
<jihoon48.kim@samsung.com>
Wed, 6 May 2020 01:22:36 +0000
(10:22 +0900)
Change-Id: I84fa3ae708b0449a98fb5a8beca07c567bf02177
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
sticker-parser/sticker-parser.c
patch
|
blob
|
history
diff --git
a/sticker-parser/sticker-parser.c
b/sticker-parser/sticker-parser.c
index
9d73dd3
..
a9c92ea
100644
(file)
--- a/
sticker-parser/sticker-parser.c
+++ b/
sticker-parser/sticker-parser.c
@@
-605,8
+605,10
@@
static int __get_sticker_info_from_json(const char *appid, const char *file_path
goto free_memory;
char *rel_thumbnail = __get_string_from_object(info_object, "thumbnail");
- if (rel_thumbnail && rel_thumbnail[0] != '\0') {
- thumbnail_path = __convert_sticker_uri(rel_thumbnail, appid, app_path);
+ if (rel_thumbnail) {
+ if (rel_thumbnail[0] != '\0')
+ thumbnail_path = __convert_sticker_uri(rel_thumbnail, appid, app_path);
+
free(rel_thumbnail);
}