(RGL PS3) Use malloc instead of new for buffer