g_clear_pointer() is only available from GLib 2.34 and higher. Regression was introduced in 627453c2.