mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-06 01:26:49 +08:00
[rk_malloc]: fix compile error on Linux/Android
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@42 6e48237b-75ef-9749-8fc9-41990f28c85a
This commit is contained in:
@@ -71,7 +71,7 @@ void *rk_mpp_malloc(char *tag, size_t size)
|
|||||||
|
|
||||||
if (0 == os_malloc(&ptr, RK_OSAL_MEM_ALIGN, size)) {
|
if (0 == os_malloc(&ptr, RK_OSAL_MEM_ALIGN, size)) {
|
||||||
if (osal_mem_flag & OSAL_MEM_LIST_EN) {
|
if (osal_mem_flag & OSAL_MEM_LIST_EN) {
|
||||||
struct mem_node *node = new struct mem_node;
|
struct mem_node *node = (struct mem_node *)malloc(sizeof(struct mem_node));
|
||||||
INIT_LIST_HEAD(&node->list);
|
INIT_LIST_HEAD(&node->list);
|
||||||
list_add_tail(&node->list, &mem_list);
|
list_add_tail(&node->list, &mem_list);
|
||||||
node->ptr = ptr;
|
node->ptr = ptr;
|
||||||
|
Reference in New Issue
Block a user