demo-window: Fix a memory leak

4 jobs for wip/sadiq/fix-memory-leaks in 2 minutes and 20 seconds (queued for 2 seconds)
Status Name Job ID Coverage
  Build
passed abi-check #1399786

00:01:56

passed api-visibility #1399783

00:00:43

passed build-flatpak #1399785
flatpak

00:02:20

passed doc #1399784
flatpak

00:01:25