From: prince Date: Thu, 26 Jul 2012 13:26:57 +0000 (+0530) Subject: [Elm_Gengrid] Added NULL check for gengrid item and its item content. Very X-Git-Tag: 1.0.0+svn.70492slp2+build25~15 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=596a576cab20d909c9fa7ec54161643ff808cf22;p=framework%2Fuifw%2Felementary.git [Elm_Gengrid] Added NULL check for gengrid item and its item content. Very few times it->item is getting NULL, giving segfault. Change-Id: Ia0e02382d23025635223c3327353262f501b5e35 --- diff --git a/src/lib/elm_gengrid.c b/src/lib/elm_gengrid.c index 8ee50c4..97f23f2 100644 --- a/src/lib/elm_gengrid.c +++ b/src/lib/elm_gengrid.c @@ -1056,6 +1056,8 @@ _reorder_item_move_animator_cb(void *data) double tt, t; Evas_Coord dx, dy; + if (!it || !it->item) return ECORE_CALLBACK_CANCEL; + tt = REORDER_EFFECT_TIME; t = ((0.0 > (t = ecore_loop_time_get()-it->item->moving_effect_start_time)) ? 0.0 : t); dx = ((it->item->tx - it->item->ox) / 10) * _elm_config->scale;