diff options
author | Johannes Schickel | 2010-03-10 20:33:38 +0000 |
---|---|---|
committer | Johannes Schickel | 2010-03-10 20:33:38 +0000 |
commit | 80fae481b0d97b8de64803275067fa08dbe1c720 (patch) | |
tree | ef8a35070bc8ca76ebc18734bb59d93f0b9456c4 /backends/platform/gp2x | |
parent | 91e7d2746883b622648d6542d34345e1a18fb943 (diff) | |
download | scummvm-rg350-80fae481b0d97b8de64803275067fa08dbe1c720.tar.gz scummvm-rg350-80fae481b0d97b8de64803275067fa08dbe1c720.tar.bz2 scummvm-rg350-80fae481b0d97b8de64803275067fa08dbe1c720.zip |
Fix a valgrind warning.
It is *not* a good idea to pass a reference to a list entry to List::remove.
Since List::remove will remove *all* occurances of that list entry, it will
also invaldiate the reference, resulting in invalid memory reads after the
entry has been removed from the list, when List::remove will continue to
search the rest of the list for more occurances of the same entry.
svn-id: r48225
Diffstat (limited to 'backends/platform/gp2x')
0 files changed, 0 insertions, 0 deletions