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:
Stefan Schmidt 2012-10-02 12:53:54 +00:00
parent cea45580e0
commit 27e48050d4
1 changed files with 2 additions and 2 deletions

View File

@ -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;