region: Fix small memory leak

Was introduced in 79e00c37
5 jobs for <span class="ref-name">region-language-dialog-leak</span> in 6 minutes and 29 seconds (queued for 3 seconds)
Status Job ID Name Coverage
  Build
passed #56616
build

00:01:49

 
  Test
passed #56619
allowed to fail
asan

00:01:47

passed #56618
coverage

00:02:07

passed #56617
test

00:00:43

 
  Delivery
manual #56620
allowed to fail manual
packaging