Added new float* to cvMat conversion function to avoid memory leaks.