From 0cd460441bb817459f5300a463f85098c17eee73 Mon Sep 17 00:00:00 2001 From: Liu Chao Date: Sat, 1 Jun 2013 11:09:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E9=98=9F=E5=88=97=E6=88=90?= =?UTF-8?q?=E5=91=98=E5=90=8E=EF=BC=8C=E4=B8=8D=E7=BD=AE=E9=9B=B6=E5=86=85?= =?UTF-8?q?=E5=AD=98=E7=A9=BA=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/LCUI_Queue.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/LCUI_Queue.c b/src/LCUI_Queue.c index 23bccc68..ad541b3a 100755 --- a/src/LCUI_Queue.c +++ b/src/LCUI_Queue.c @@ -613,9 +613,7 @@ __Queue_Delete( LCUI_Queue * queue, int pos, int flag ) p_src->next = NULL; } } - if(flag == 1) { - memset(p_src->data, 0, queue->element_size); - } else { + if(flag == 0) { p_src->data = NULL; } } @@ -626,10 +624,8 @@ __Queue_Delete( LCUI_Queue * queue, int pos, int flag ) if( queue->destroy_func ) { queue->destroy_func(save); } - /* 置零该内存空间 */ - memset(save, 0, queue->element_size); /* 不需要释放内存,只有在调用Queue_Destroy函数时才全部释放 */ - //free(save); + //free(save); } return TRUE; }