Fix double-free in X selection code.