Add a simplified backport of g_steal_pointer()
authorSimon McVittie <smcv@collabora.com>
Mon, 24 Jul 2017 11:30:57 +0000 (12:30 +0100)
committerSimon McVittie <smcv@collabora.com>
Wed, 7 Feb 2018 07:34:35 +0000 (07:34 +0000)
commit3ccad29fba561b4321df7c9926cd4d7544dcaed0
tree61109582209597f7d96f748ee6c3c3a8060ba203
parent97d480c09c66ad7860f6c0e0a3d56fdf3a0d56a8
Add a simplified backport of g_steal_pointer()

This will be used in tests later in the branch.

Sadly we can't use GLIB_VERSION_2_44 unless we are willing to have a
hard dependency on GLib 2.44, which would force us to do all our
Travis-CI builds in Docker containers rather than in ye olde base
system, and that adds 50% to the time taken to do builds.

Reviewed-by: Philip Withnall <withnall@endlessm.com>
[smcv: Rebase onto 1.13.x branch, fix minor conflicts]
Signed-off-by: Simon McVittie <smcv@collabora.com>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=101354
(cherry picked from commit d5742550ca566317eaddea0ff7db04098f9f044f)
configure.ac
test/test-utils-glib.h