tests: collectpads: fix for CK_FORK=no
authorTim-Philipp Müller <tim@centricular.com>
Sun, 10 Apr 2016 19:45:24 +0000 (20:45 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Sun, 10 Apr 2016 19:57:55 +0000 (20:57 +0100)
commitf9eb3b98f1858e2273696895827af2b9d86bfde1
tree99dd0b6f92dc7c95510996dc84dc0dcb958977b3
parent71f554009d549ebf9e6aec4d876714f92fe10c9e
tests: collectpads: fix for CK_FORK=no

Reset global state when done, and unref sink pads too
in teardown function to make it valgrind clean.

https://bugzilla.gnome.org/show_bug.cgi?id=623469
tests/check/libs/collectpads.c