Fix bugs in de::AppendList
authorPyry Haulos <phaulos@google.com>
Wed, 30 Mar 2016 02:21:04 +0000 (19:21 -0700)
committerPyry Haulos <phaulos@google.com>
Wed, 30 Mar 2016 02:46:52 +0000 (19:46 -0700)
commit0e238cc9ac8cb4523bcc892dfa2fb6de62db8f87
treebed56e2507afbff8a32327f2857101d5b1e031ea
parent1cd0c53f0a2d56b69e1814a92691a12d2884d66e
Fix bugs in de::AppendList

 * de::AppendList was not calling destructor for elements in the last
block. This would result in resource leak if elements have non-trivial
destructor.

 * de::AppendList::clear() failed to set m_first->next to null resulting
use of freed blocks.

Bug: 27909093
Change-Id: Id012bd6c76eb31058b302d0540891e5280a2d39f
framework/delibs/decpp/deAppendList.cpp
framework/delibs/decpp/deAppendList.hpp