gtk4-demo: Fix a memory leak

The gears demo was leaking its vertices.
13 jobs for leak-fixes-46 in 19 minutes and 56 seconds (queued for 4 seconds)