From bff2c8ea8fd71b7a84831121fc76e43056c2a103 Mon Sep 17 00:00:00 2001 From: devilhorns Date: Mon, 14 Nov 2011 18:48:19 +0000 Subject: [PATCH] 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 --- src/lib/ecore_evas/ecore_evas_x.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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, -- 2.7.4