In OpenniCamera, delete array before newing it to prevent memory leak.