Fix bug in list.
This commit is contained in:
parent
912cc4d0cf
commit
67a647b88d
@ -66,7 +66,9 @@ void guac_common_list_remove(guac_common_list* list,
|
|||||||
|
|
||||||
/* Point previous (or head) to next */
|
/* Point previous (or head) to next */
|
||||||
*(element->_ptr) = element->next;
|
*(element->_ptr) = element->next;
|
||||||
element->next->_ptr = element->_ptr;
|
|
||||||
|
if (element->next != NULL)
|
||||||
|
element->next->_ptr = element->_ptr;
|
||||||
|
|
||||||
free(element);
|
free(element);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user