gio-test: fix uninitialized variable warning
id was assigned to an arbitrary number of times in a loop, and is now stored in an array which is freed after the main loop has run.
id was assigned to an arbitrary number of times in a loop, and is now stored in an array which is freed after the main loop has run.