elementary/index - [E-devel] [Patch] elm_index patch

Hi,

Attachment to the mail is elm_index patch.

Change Log:
a. Memory leak fix in function elm_index_item_append_relative due to memory allocated for item creation reamined allocated when the control returns.
b. Memory leak fix in function elm_index_item_prepend_relative due to memory allocated for item creation reamined allocated when the control returns.

Signed-Off-By: RAJEEV RANJAN <rajeev.r@samsung.com>
Signed-Off-By: PRINCE KUMAR DUBEY <prince.dubey@samsung.com>
Signed-Off-By: ChunEon Park <hermet@hermet.pe.kr>



SVN revision: 65697
This commit is contained in:
RAJEEV RANJAN 2011-11-30 00:07:44 +00:00 committed by ChunEon Park
parent 8b017483ea
commit ba55a1b120
1 changed files with 2 additions and 2 deletions

View File

@ -681,13 +681,13 @@ elm_index_item_append_relative(Evas_Object *obj, const char *letter, const void
elm_index_item_append(obj, letter, item);
return;
}
it = _item_new(obj, letter, item);
it_rel = _item_find(obj, relative);
if (!it_rel)
{
elm_index_item_append(obj, letter, item);
return;
}
it = _item_new(obj, letter, item);
if (!it) return;
wd->items = eina_list_append_relative(wd->items, it, it_rel);
_index_box_clear(obj, wd->bx[wd->level], wd->level);
@ -705,13 +705,13 @@ elm_index_item_prepend_relative(Evas_Object *obj, const char *letter, const void
elm_index_item_prepend(obj, letter, item);
return;
}
it = _item_new(obj, letter, item);
it_rel = _item_find(obj, relative);
if (!it_rel)
{
elm_index_item_append(obj, letter, item);
return;
}
it = _item_new(obj, letter, item);
if (!it) return;
wd->items = eina_list_prepend_relative(wd->items, it, it_rel);
_index_box_clear(obj, wd->bx[wd->level], wd->level);