forked from enlightenment/efl
edje_entry: Fix mem leak and get rid of useless calloc here.
We could leak here if the next condition is true. And more important we calloc in just 6 lines below again. From the log it seems this was just not catched in a rewrite of this part of the code. SVN revision: 77319
This commit is contained in:
parent
cea45580e0
commit
27e48050d4
|
@ -2792,8 +2792,8 @@ void
|
|||
_edje_entry_user_insert(Edje_Real_Part *rp, const char *text)
|
||||
{
|
||||
Entry *en;
|
||||
Edje_Entry_Change_Info *info = calloc(1, sizeof(*info));
|
||||
|
||||
Edje_Entry_Change_Info *info;
|
||||
|
||||
if ((rp->type != EDJE_RP_TYPE_TEXT) ||
|
||||
(!rp->typedata.text)) return;
|
||||
en = rp->typedata.text->entry_data;
|
||||
|
|
Loading…
Reference in New Issue