Fix memory leaks in gbaconv.c