Fix bug in list.

This commit is contained in:
Michael Jumper 2014-03-02 10:39:36 -08:00
parent 912cc4d0cf
commit 67a647b88d

View File

@ -66,6 +66,8 @@ void guac_common_list_remove(guac_common_list* list,
/* Point previous (or head) to next */
*(element->_ptr) = element->next;
if (element->next != NULL)
element->next->_ptr = element->_ptr;
free(element);