region: Fix double-free when closing the input chooser dialog

Fixes: GNOME/gnome-control-center#225
11 jobs for fix-lp-1796855 in 4 minutes and 19 seconds (queued for 19 minutes and 31 seconds)
latest
Status Job ID Name Coverage
  Build
passed #120382
build

00:01:53

 
  Test
passed #120384
asan

00:01:43

passed #120383
test

00:00:41

 
  Manual
manual #120389
allowed to fail manual
armv8
manual #120385
allowed to fail manual
flatpak
manual #120388
allowed to fail manual
msan
manual #120390
allowed to fail manual
ppc64le
manual #120386
allowed to fail manual
tsan
manual #120387
allowed to fail manual
ubsan
 
  Review
manual #120391
allowed to fail manual
review
manual #120392
allowed to fail manual
stop_review