projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
00a48c0
)
Evas textblock: Fixed a memory leak and comment.
author
Tom Hacohen
<tom@stosb.com>
Sun, 30 Jan 2011 10:45:40 +0000
(10:45 +0000)
committer
Tom Hacohen
<tom@stosb.com>
Sun, 30 Jan 2011 10:45:40 +0000
(10:45 +0000)
SVN revision: 56541
legacy/evas/src/lib/canvas/evas_object_textblock.c
patch
|
blob
|
history
diff --git
a/legacy/evas/src/lib/canvas/evas_object_textblock.c
b/legacy/evas/src/lib/canvas/evas_object_textblock.c
index
8df29af
..
478427f
100644
(file)
--- a/
legacy/evas/src/lib/canvas/evas_object_textblock.c
+++ b/
legacy/evas/src/lib/canvas/evas_object_textblock.c
@@
-3525,7
+3525,7
@@
_layout(const Evas_Object *obj, int calc_only, int w, int h, int *w_ret, int *h_
Eina_List *itr, *itrn;
Evas_Object_Textblock_Item *it;
par = c->paragraphs;
- /*
Copy
all the items */
+ /*
free
all the items */
EINA_LIST_FOREACH_SAFE(par->logical_items, itr, itrn, it)
{
par->logical_items =
@@
-3535,6
+3535,7
@@
_layout(const Evas_Object *obj, int calc_only, int w, int h, int *w_ret, int *h_
c->paragraphs = (Evas_Object_Textblock_Paragraph *)
eina_inlist_remove(EINA_INLIST_GET(c->paragraphs),
EINA_INLIST_GET(c->paragraphs));
+ _paragraph_clear(obj, par);
free(par);
}
}