diff options
author | Stephan Wiehr <stephan.wiehr@alpine.de> | 2014-09-12 13:19:46 +0200 |
---|---|---|
committer | Stephan Wiehr <stephan.wiehr@alpine.de> | 2014-09-12 13:19:46 +0200 |
commit | 697f165e4cd2a807aa3c7c78e0e3c4e29fa1c1e0 (patch) | |
tree | 086ac4351e0c7d70fc6a82871271e45e5029a00f | |
parent | 50e6d0a351b7c79ff3d4905c446cd95f11482781 (diff) | |
download | poi-service-697f165e4cd2a807aa3c7c78e0e3c4e29fa1c1e0.tar.gz |
Fixed #272 "Spell autocompletion not reflected in internal context"
-rw-r--r-- | src/navigation/navigation-core/locationinput-plugin/genivi_navigationcore_locationinput.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/navigation/navigation-core/locationinput-plugin/genivi_navigationcore_locationinput.cxx b/src/navigation/navigation-core/locationinput-plugin/genivi_navigationcore_locationinput.cxx index 5176ccb..2eb1a41 100644 --- a/src/navigation/navigation-core/locationinput-plugin/genivi_navigationcore_locationinput.cxx +++ b/src/navigation/navigation-core/locationinput-plugin/genivi_navigationcore_locationinput.cxx @@ -437,12 +437,13 @@ LocationInputObj::Idle(void) unique=search_list_get_unique(m_sl, NULL); m_spell_backspace=false; if (unique) { + g_free(m_search.u.str); + m_search.u.str=unique; char *next=search_list_get_unique(m_sl, unique); if (next) { m_locationinput->SpellResult(m_handle, unique, next, false); g_free(next); } - g_free(unique); } else m_locationinput->SpellResult(m_handle, "", "\b", false); |