tests: fix crash and leak in bufferlists unit test
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Sat, 20 Jun 2009 23:26:33 +0000 (00:26 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Sun, 21 Jun 2009 13:43:08 +0000 (14:43 +0100)
commit2b4d127ca0d092763c5556b6f5bdb19fbb7b0ad5
tree9e1eabd01f23668ca4fd89cfc38e02b0765fb141
parentc2e980f827c6bdacba333685d05583b0be1599d8
tests: fix crash and leak in bufferlists unit test

Don't access already-freed iterator, makes check-valgrind work and fixes
crash on PPC; unref buffer we're going to steal to make valgrind happy.
tests/check/gst/gstbufferlist.c