elementary/naviframe - free the text parts when it's item is deleted.x
authorChunEon Park <hermet@hermet.pe.kr>
Sat, 24 Nov 2012 12:43:31 +0000 (12:43 +0000)
committerChunEon Park <hermet@hermet.pe.kr>
Sat, 24 Nov 2012 12:43:31 +0000 (12:43 +0000)
SVN revision: 79633

ChangeLog
NEWS
src/lib/elc_naviframe.c

index 07b175f..2e2c42f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
 2012-11-22  Thiep Ha 
 
         * Fixed entry to enable have_selection only when a text is actually selected.
+
+2012-11-23  ChunEon Park (Hermet)
+
+        * Free the text parts of the naviframe item when item is deleted.
diff --git a/NEWS b/NEWS
index 08f3ea8..3a08f27 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -63,6 +63,7 @@ Fixes:
    * Fix the naviframe to delete contents which are preserved_on set if the naviframe is deleted.
    * Fix the naviframe to clear the title contents when it's item is deleted.
    * Fix entry to enable have_selection only when a text is actually selected.
+   * Fix the naviframe to clear the text parts when it's item is deleted.
 
 Removals:
 
index 4b59da8..39f0dd7 100644 (file)
@@ -91,6 +91,7 @@ _item_free(Elm_Naviframe_Item *it)
 {
    Eina_Inlist *l;
    Elm_Naviframe_Content_Item_Pair *content_pair;
+   Elm_Naviframe_Text_Item_Pair *text_pair;
    Evas_Object *title_content;
 
    ELM_NAVIFRAME_DATA_GET(WIDGET(it), sd);
@@ -118,6 +119,11 @@ _item_free(Elm_Naviframe_Item *it)
         eina_stringshare_del(content_pair->part);
         free(content_pair);
      }
+   EINA_INLIST_FOREACH_SAFE(it->text_list, l, text_pair)
+     {
+        eina_stringshare_del(text_pair->part);
+        free(text_pair);
+     }
 
    if (it->content)
      {