ethumb: fixed a potential dangling pointer.

fixed by null handling.
This commit is contained in:
Hermet Park 2019-09-05 18:04:07 +09:00
parent 2ca66b2036
commit c703fba143
1 changed files with 4 additions and 1 deletions

View File

@ -624,7 +624,10 @@ ethumb_frame_set(Ethumb *e, const char *theme_file, const char *group, const cha
{
edje_object_part_unswallow(frame->edje, e->img);
if (!theme_file)
_ethumb_frame_free(frame);
{
_ethumb_frame_free(frame);
frame = NULL;
}
}
if (!theme_file)