*/}}
Browse Source

fix lstPopPointerLeave

YimingWu 3 ngày trước cách đây
mục cha
commit
35100c791a
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      la_util.c

+ 1 - 1
la_util.c

@@ -930,7 +930,7 @@ void *lstPopPointerLeave(laListHandle *h){
     laListItemPointer *lip;
     void *rev = 0;
     if (!h) return 0;
-    lip = lstPopItem(h); memLeave(lip);
+    lip = lstPopItem(h); if(lip) memLeave(lip);
     rev = lip ? lip->p : 0;
     return rev;
 }