Commit: 1d1fc983e47d6b2249dcbba161822c7a3888ec70
Parent: 939d25f0b0d29cf422ab5f06bba9070b431e8c56
Author: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2014-02-06 15:23:00
Tree: f1c7384cc032c230fd3fee6f4817552d649392ab

android/hidhost: Use g_slist_free_full to free devices list Calling g_slist_remove within the callback of g_slist_foreach is very inefficient as it has to iterate twice in the list to figure which element to remove.

Diffstat

M android/hidhost.c | 35 +++++++++++++++++- - - - - - - - - - - - - - - - - -

1 files changed, 17 insertions(+), 18 deletions(-)

View Full Diff | Patch