tls/tests: fix up leak checking
authorDan Winship <danw@gnome.org>
Thu, 25 Aug 2011 22:11:41 +0000 (18:11 -0400)
committerDan Winship <danw@gnome.org>
Thu, 25 Aug 2011 22:11:41 +0000 (18:11 -0400)
commit3239480f6db94e187bfce15092bfe36882f458d5
tree022eb842e57d89e6c9878ce56d32300c8ae1a35d
parentce456606cb2c2c3c919ff4e2b5b898b98a4fbbde
tls/tests: fix up leak checking

You can't use !G_IS_FOO(object) to test that an object has been
destroyed, since (a) it may not work if the memory hasn't been
cleared, and (b) it might crash if it has. Instead, use weak pointers
to test that the object has been destroyed when we expect it to be.
tls/tests/tls.c