forked from enlightenment/efl
evas textblock: fix dereferenced memory after free issue for ellipsis
Summary: _layout_ellipsis_item_new() function deallocates "ellip_ti" and allocates memory for new one. The local "ellip_ti" pointer should be updated. @fix Test Plan: N/A Reviewers: raster, cedric, herdsman, jpeg, woohyun Differential Revision: https://phab.enlightenment.org/D4854
This commit is contained in:
parent
c6d6e13060
commit
f97920816d
|
@ -5309,7 +5309,7 @@ _layout_par_ellipsis_items(Ctxt *c, double ellip)
|
|||
off += it->adv;
|
||||
}
|
||||
c->o->ellip_prev_it = i;
|
||||
if (it) _layout_ellipsis_item_new(c, it);
|
||||
if (it) ellip_ti = _layout_ellipsis_item_new(c, it);
|
||||
|
||||
|
||||
pos = (it && it->type == EVAS_TEXTBLOCK_ITEM_TEXT) ?
|
||||
|
|
Loading…
Reference in New Issue