Fix X GC leak in GTK and raw (no toolkit) X ports.