ethumb: fixed a potential dangling pointer.
fixed by null handling.
This commit is contained in:
parent
2ca66b2036
commit
c703fba143
|
@ -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);
|
edje_object_part_unswallow(frame->edje, e->img);
|
||||||
if (!theme_file)
|
if (!theme_file)
|
||||||
_ethumb_frame_free(frame);
|
{
|
||||||
|
_ethumb_frame_free(frame);
|
||||||
|
frame = NULL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!theme_file)
|
if (!theme_file)
|
||||||
|
|
Loading…
Reference in New Issue