From: discomfitor Date: Fri, 5 Aug 2011 23:13:16 +0000 (+0000) Subject: alloc checks wooooooooooooo X-Git-Tag: REL_F_I9500_20120323_1~17^2~2007 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5c4c3246e69df78772300ac06e4a75a939b1426f;p=framework%2Fuifw%2Felementary.git alloc checks wooooooooooooo git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@62157 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/elm_gesture_layer.c b/src/lib/elm_gesture_layer.c index 76b00f5..157e5be 100644 --- a/src/lib/elm_gesture_layer.c +++ b/src/lib/elm_gesture_layer.c @@ -3169,12 +3169,14 @@ elm_gesture_layer_cb_set(Evas_Object *obj, Elm_Gesture_Types idx, Elm_Gesture_State cb_type, Elm_Gesture_Event_Cb cb, void *data) { Widget_Data *wd = elm_widget_data_get(obj); + Gesture_Info *p; if (!wd) return; if (!wd->gesture[idx]) wd->gesture[idx] = calloc(1, sizeof(Gesture_Info)); + if (!wd->gesture[idx]) return; - Gesture_Info *p = wd->gesture[idx]; + p = wd->gesture[idx]; p->obj = obj; p->g_type = idx; p->fn[cb_type].cb = cb;