tests: check for NULL before g_object_unref()
authorRyan Lortie <desrt@desrt.ca>
Wed, 4 Feb 2015 16:47:39 +0000 (17:47 +0100)
committerRyan Lortie <desrt@desrt.ca>
Tue, 17 Feb 2015 21:16:52 +0000 (16:16 -0500)
commitc7f0ea435471024fc2531ac5185d9f4b5127bfb0
treec01076a8b833290826fe1255bfc3e4c586849f9f
parent619832f729fbe696575fe1c42a3101eab7691427
tests: check for NULL before g_object_unref()

delayed_close_free() calls g_object_unref() on a variable that is
expected to possibly contain NULL (as indicated by the fact that the
NULL case is handled in my_slow_close_output_stream_close_async()).

This is dead code right now (due to a bug in GDBus), which is why it
isn't actually causing a failure.  It should still be fixed, however.

https://bugzilla.gnome.org/show_bug.cgi?id=743990
gio/tests/gdbus-close-pending.c