Hello all,

When elm_slideshow's loop attribute is not set, _item_realize() will
access NULL item_prev and item_next when trying to pre-create the
previous and next items.  Please find the trivial fix as attached and
adjust it as you see fit.

Thanks.


brian

-- 
brian
------------------

Cool-Karaoke - The smallest recording studio, in your palm, open-sourced
http://cool-idea.com.tw/

iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe
Index: elementary/src/lib/elm_slideshow.c
===================================================================
--- elementary/src/lib/elm_slideshow.c  (revision 59283)
+++ elementary/src/lib/elm_slideshow.c  (working copy)
@@ -241,7 +241,8 @@
           {
              --ac;
              --lc;
-             _item_next = _item_next_get(_item_next);
+             if (_item_next)
+                _item_next = _item_next_get(_item_next);
              if ((_item_next)
                  && (!_item_next->base.view)
                  && (_item_next->itc->func.get))
@@ -264,7 +265,8 @@
           {
              --bc;
              --lc;
-             _item_prev = _item_prev_get(_item_prev);
+             if (_item_prev)
+               _item_prev = _item_prev_get(_item_prev);
              if ((_item_prev)
                  && (!_item_prev->base.view)
                  && (_item_prev->itc->func.get))
------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to