Evas textblock: Fixed a memory leak and comment.
authortasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 30 Jan 2011 10:45:40 +0000 (10:45 +0000)
committertasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 30 Jan 2011 10:45:40 +0000 (10:45 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@56541 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/canvas/evas_object_textblock.c

index 8df29af..478427f 100644 (file)
@@ -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);
           }
      }