Use GLib allocators since we don't check for null return values.