build: bump glib requirement to 2.32
core: Do not use g_clear_pointer()

To avoid requiring glib 2.34