huh ? libcamera's API uses C++ shared / unique pointers pretty thoroughly, at no point you should be managing memory manually