summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/wayland-util.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wayland-util.c b/src/wayland-util.c
index 647b861..06bd245 100644
--- a/src/wayland-util.c
+++ b/src/wayland-util.c
@@ -49,6 +49,8 @@ wl_list_remove(struct wl_list *elm)
{
elm->prev->next = elm->next;
elm->next->prev = elm->prev;
+ elm->next = NULL;
+ elm->prev = NULL;
}
WL_EXPORT int