src/physfs.c
changeset 975 653a53e51931
parent 973 48ad89e6042c
child 986 e69d37f80ce2
--- a/src/physfs.c	Sat Mar 28 16:16:08 2009 -0400
+++ b/src/physfs.c	Sat Mar 28 17:50:54 2009 -0400
@@ -872,10 +872,13 @@
 void PHYSFS_freeList(void *list)
 {
     void **i;
-    for (i = (void **) list; *i != NULL; i++)
-        allocator.Free(*i);
-
-    allocator.Free(list);
+    if (list != NULL)
+    {
+        for (i = (void **) list; *i != NULL; i++)
+            allocator.Free(*i);
+
+        allocator.Free(list);
+    } /* if */
 } /* PHYSFS_freeList */