Fix memory leak, handle hash table size 58/245558/7
authorShinwoo Kim <cinoo.kim@samsung.com>
Mon, 12 Oct 2020 09:17:29 +0000 (18:17 +0900)
committerBartlomiej Grzelewski <b.grzelewski@samsung.com>
Fri, 16 Oct 2020 14:47:34 +0000 (16:47 +0200)
commit4d09f27a71e675fa756bc68e15a8ff907c069e30
tree7278f23fded4f7d892c16d9df1db5f55f2755587
parent408eaaf58afa3da94916c88593ce1a0a297988f9
Fix memory leak, handle hash table size

(1) Fix memory leak of atspi_accessible_get_reading_material.
(2) Remove defunct accessible from application hash table.
  In case of chromium-efl, it emits lots of "defunct" events without
  "RemoveAccessible", and this makes application hash table too big
  which could cause a Memory Alert on TV product.
(3) If AT-server does not emit "RemoveAccessible", then there is not
  a chance to remove accessible from the application hash table. And
  then the memory usage of AT-client grows bigger and bigger. So this
  patch is using newly defined value HASH_TABLE_SIZE_MAX.

Change-Id: If60d1fa1714d8bbf73b48cf16b1e1274f5a30cb9
atspi/atspi-accessible.c
atspi/atspi-event-listener-private.h
atspi/atspi-event-listener.c
atspi/atspi-misc.c