From: TimePath Date: Sat, 5 Dec 2015 10:46:28 +0000 (+1100) Subject: LinkedList: delete method; free the list too X-Git-Tag: xonotic-v0.8.2~1546 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=8880863d2196c49dfb92035b3b45a7c2e6ebd1c2;p=xonotic%2Fxonotic-data.pk3dir.git LinkedList: delete method; free the list too --- diff --git a/qcsrc/lib/linkedlist.qh b/qcsrc/lib/linkedlist.qh index 19d72ac27..b2aabd229 100644 --- a/qcsrc/lib/linkedlist.qh +++ b/qcsrc/lib/linkedlist.qh @@ -59,6 +59,7 @@ entity LL_POP(LinkedList this) dtor \ remove(it); \ } \ + remove(_ll); \ this = NULL; \ } \ while (0)