Fix some memory leaks

Free some objects that were allocated with new but not deleted, and in
one case, do not set a pointer to nullptr before deleting, as this
results in a memory leak due to memory allocated not being freed.
This commit is contained in:
Rayyan Ansari
2023-11-06 20:17:06 +00:00
parent 0e4d082361
commit 2b3bba512e
3 changed files with 7 additions and 1 deletions

View File

@ -146,6 +146,7 @@ CameraManager::~CameraManager()
// save settings here?
delete[] frameBuffer;
delete[] tempFrameBuffer;
}
void CameraManager::init()