fix invalid gl_copy_pointer malloc
pedantry in test