summaryrefslogtreecommitdiff
path: root/src/lib/ethumb
diff options
context:
space:
mode:
authorHermet Park <hermetpark@gmail.com>2019-09-05 18:04:07 +0900
committerHermet Park <hermetpark@gmail.com>2019-09-05 18:08:12 +0900
commitc703fba14347f11507ebadc8736539a5a8eae63e (patch)
treef2fa8b3d0acbed081c1fa0a1062912bf7b99b61c /src/lib/ethumb
parent2ca66b2036a4e061283676a3b23e63d217f4bb68 (diff)
ethumb: fixed a potential dangling pointer.
fixed by null handling.
Diffstat (limited to 'src/lib/ethumb')
-rw-r--r--src/lib/ethumb/ethumb.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/ethumb/ethumb.c b/src/lib/ethumb/ethumb.c
index 38552bfad3..ca019823ae 100644
--- a/src/lib/ethumb/ethumb.c
+++ b/src/lib/ethumb/ethumb.c
@@ -624,7 +624,10 @@ ethumb_frame_set(Ethumb *e, const char *theme_file, const char *group, const cha
624 { 624 {
625 edje_object_part_unswallow(frame->edje, e->img); 625 edje_object_part_unswallow(frame->edje, e->img);
626 if (!theme_file) 626 if (!theme_file)
627 _ethumb_frame_free(frame); 627 {
628 _ethumb_frame_free(frame);
629 frame = NULL;
630 }
628 } 631 }
629 632
630 if (!theme_file) 633 if (!theme_file)