author | ecalot
<ecalot> 2005-12-21 10:11:24 UTC |
committer | ecalot
<ecalot> 2005-12-21 10:11:24 UTC |
parent | f891f95a2378c9f204c0042db5097673ce876a4e |
PR/src/lib/layers/idlist.c | +5 | -2 |
diff --git a/PR/src/lib/layers/idlist.c b/PR/src/lib/layers/idlist.c index 2358d15..9b4b7a8 100644 --- a/PR/src/lib/layers/idlist.c +++ b/PR/src/lib/layers/idlist.c @@ -213,7 +213,10 @@ int isInThePartialList(const char* vFile, tResourceId id) { void freePartialList() { void* aux=partialList.list; - while (partialList.count--) freeRM(partialList.list++); - free(aux); + if (partialList.list) { + while (partialList.count--) freeRM(partialList.list++); + free(aux); + } + partialList.list=NULL; }