- g_list_remove_link() just removes the link. Thus the node removed should be freed.
- g_list_delete_link() removes the link and frees the node.
- This change fixs a memory leak issue.
Change-Id: I7f8f1b759d90bb71e54f9b062ae4c0f7564a25d4
Signed-off-by: taeyoung <ty317.kim@samsung.com>
#define DD_LIST_REMOVE(a, b) \
a = g_list_remove(a, (gpointer)b)
#define DD_LIST_REMOVE_LIST(a, b) \
- a = g_list_remove_link(a, b)
+ a = g_list_delete_link(a, b)
#define DD_LIST_LENGTH(a) \
g_list_length(a)
#define DD_LIST_NTH(a, b) \