diff options
author | Hermet Park <hermetpark@gmail.com> | 2019-09-05 18:04:07 +0900 |
---|---|---|
committer | Hermet Park <hermetpark@gmail.com> | 2019-09-05 18:08:12 +0900 |
commit | c703fba14347f11507ebadc8736539a5a8eae63e (patch) | |
tree | f2fa8b3d0acbed081c1fa0a1062912bf7b99b61c | |
parent | 2ca66b2036a4e061283676a3b23e63d217f4bb68 (diff) |
ethumb: fixed a potential dangling pointer.
fixed by null handling.
-rw-r--r-- | src/lib/ethumb/ethumb.c | 5 |
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) |