core: fix memory leak in display of mouse event debug info

v2.8-utf8proc
Sébastien Helleu 2017-05-04 07:29:24 +02:00
parent ca9e4697f5
commit 07b7be0357
2 changed files with 10 additions and 5 deletions

View File

@ -44,6 +44,7 @@ Improvements::
Bug fixes::
* core: fix memory leak in display of mouse event debug info
* core: fix command /cursor stop (do not toggle cursor mode) (issue #964)
* core: fix delayed refresh when the signal SIGWINCH is received (terminal resized), send signal "signal_sigwinch" after refreshes (issue #902)
* irc: fix crash in case of invalid server reply during SASL authentication with dh-blowfish or dh-aes mechanism

View File

@ -1107,12 +1107,16 @@ gui_key_focus_command (const char *key, int context,
{
gui_chat_printf (NULL, _("Hashtable focus:"));
list_keys = hashtable_get_list_keys (hashtable);
for (ptr_item = list_keys->items; ptr_item;
ptr_item = ptr_item->next_item)
if (list_keys)
{
gui_chat_printf (NULL, " %s: \"%s\"",
ptr_item->data,
hashtable_get (hashtable, ptr_item->data));
for (ptr_item = list_keys->items; ptr_item;
ptr_item = ptr_item->next_item)
{
gui_chat_printf (NULL, " %s: \"%s\"",
ptr_item->data,
hashtable_get (hashtable, ptr_item->data));
}
weelist_free (list_keys);
}
}
if (debug)