mirror of
https://github.com/pikvm/ustreamer.git
synced 2026-04-13 18:16:13 +00:00
list: clean prev/next pointers on remove
This commit is contained in:
@@ -64,6 +64,8 @@
|
|||||||
__typeof__(x_first) m_next = x_item->next; \
|
__typeof__(x_first) m_next = x_item->next; \
|
||||||
m_next->prev = x_item->prev; \
|
m_next->prev = x_item->prev; \
|
||||||
} \
|
} \
|
||||||
|
x_item->prev = NULL; \
|
||||||
|
x_item->next = NULL; \
|
||||||
}
|
}
|
||||||
|
|
||||||
#define US_LIST_REMOVE_C(x_first, x_item, x_count) { \
|
#define US_LIST_REMOVE_C(x_first, x_item, x_count) { \
|
||||||
|
|||||||
Reference in New Issue
Block a user