oops sorry.
in diff, i did a mistakes
it's refined version.

On Tue, Mar 20, 2012 at 4:43 PM, Sanjeev BA <eflel...@gmail.com> wrote:
> how does EINA_LIST_FOREACH(*source, l, key) work without initializing
> *source ?
>
> On Tue, Mar 20, 2012 at 4:31 PM, Hyoyoung Chang <hyoyo...@gmail.com> wrote:
>
>> Dear all,
>>
>> I found a bug in _item_flip_realize.
>> It replaces previous string list without free.
>> this patch fixed for it.
>>
>> Thanks
>>
>>
>> ------------------------------------------------------------------------------
>> This SF email is sponsosred by:
>> Try Windows Azure free for 90 days Click Here
>> http://p.sf.net/sfu/sfd2d-msazure
>> _______________________________________________
>> enlightenment-devel mailing list
>> enlightenment-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
>>
>>
> ------------------------------------------------------------------------------
> This SF email is sponsosred by:
> Try Windows Azure free for 90 days Click Here
> http://p.sf.net/sfu/sfd2d-msazure
> _______________________________________________
> enlightenment-devel mailing list
> enlightenment-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Index: elementary/src/lib/elm_genlist.c
===================================================================
--- elementary/src/lib/elm_genlist.c    (리비전 69519)
+++ elementary/src/lib/elm_genlist.c    (작업 사본)
@@ -1935,10 +1935,10 @@ _item_flips_realize(Elm_Gen_Item *it,
         const Eina_List *l;
         const char *key;
         Evas_Object *ic = NULL;
+        Eina_List *cons = NULL;
+        cons = elm_widget_stringlist_get(edje_object_data_get(target, 
"flips"));
 
-        *source = elm_widget_stringlist_get(edje_object_data_get(target, 
"flips"));
-
-        EINA_LIST_FOREACH(*source, l, key)
+        EINA_LIST_FOREACH(cons, l, key)
           {
              if (it->itc->func.content_get)
                ic = it->itc->func.content_get
@@ -1953,6 +1953,8 @@ _item_flips_realize(Elm_Gen_Item *it,
                     elm_widget_disabled_set(ic, EINA_TRUE);
                }
           }
+        *source = eina_list_merge(*source, cons);
+        elm_widget_stringlist_free(cons);
      }
 
    return res;
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to