ecore_evas_wayland: Fix array step size
authorChristopher Michael <cp.michael@samsung.com>
Tue, 22 Oct 2019 14:12:51 +0000 (10:12 -0400)
committerWonki Kim <wonki_.kim@samsung.com>
Mon, 11 Nov 2019 02:20:38 +0000 (11:20 +0900)
Fix bug where eina_array step size was being increased by 10 everytime
a handler was pushed to the array. There is no need to increase array
size by 10 each time we add 1 pointer to handler.

@fix

src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c

index ee81b05..08b8229 100755 (executable)
@@ -1726,7 +1726,7 @@ _ecore_evas_wl_common_init(void)
    if (++_ecore_evas_wl_init_count != 1)
      return _ecore_evas_wl_init_count;
 
-   _ecore_evas_wl_event_hdls = eina_array_new(10);
+   _ecore_evas_wl_event_hdls = eina_array_new(1);
 
    h = ecore_event_handler_add(ECORE_EVENT_MOUSE_IN,
                              _ecore_evas_wl_common_cb_mouse_in, NULL);