From: devilhorns Date: Mon, 14 Nov 2011 18:48:19 +0000 (+0000) Subject: Ecore_Evas: We don't need to allocate 10 items for this array if we X-Git-Tag: accepted/2.0/20130306.224007~123^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bff2c8ea8fd71b7a84831121fc76e43056c2a103;p=profile%2Fivi%2Fecore.git Ecore_Evas: We don't need to allocate 10 items for this array if we are only going to use (at most) 3. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@65194 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/ecore_evas/ecore_evas_x.c b/src/lib/ecore_evas/ecore_evas_x.c index 752b43e..2bb8f15 100644 --- a/src/lib/ecore_evas/ecore_evas_x.c +++ b/src/lib/ecore_evas/ecore_evas_x.c @@ -56,17 +56,17 @@ _ecore_evas_x_group_leader_update(Ecore_Evas *ee) static void _ecore_evas_x_protocols_set(Ecore_Evas *ee) { - Ecore_X_Atom protos[10]; + Ecore_X_Atom protos[3]; unsigned int num = 0, tmp = 0; if (ee->func.fn_delete_request) - protos[num++] = ECORE_X_ATOM_WM_DELETE_WINDOW; + protos[num++] = ECORE_X_ATOM_WM_DELETE_WINDOW; protos[num++] = ECORE_X_ATOM_NET_WM_PING; protos[num++] = ECORE_X_ATOM_NET_WM_SYNC_REQUEST; ecore_x_icccm_protocol_atoms_set(ee->prop.window, protos, num); if (!ee->engine.x.netwm_sync_counter) - ee->engine.x.netwm_sync_counter = ecore_x_sync_counter_new(0); + ee->engine.x.netwm_sync_counter = ecore_x_sync_counter_new(0); tmp = ee->engine.x.netwm_sync_counter; ecore_x_window_prop_card32_set(ee->prop.window,