]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
LinkedList: delete method; free the list too
authorTimePath <andrew.hardaker1995@gmail.com>
Sat, 5 Dec 2015 10:46:28 +0000 (21:46 +1100)
committerTimePath <andrew.hardaker1995@gmail.com>
Sat, 5 Dec 2015 10:46:28 +0000 (21:46 +1100)
qcsrc/lib/linkedlist.qh

index 19d72ac27e0a1209043b79e76d915d219cb3eeab..b2aabd22999d124d94f2552d8af6705effee0cf4 100644 (file)
@@ -59,6 +59,7 @@ entity LL_POP(LinkedList this)
                        dtor \
                        remove(it); \
                } \
+               remove(_ll); \
                this = NULL; \
        } \
        while (0)