When I open/close camera in one process several time( create camera object and destroy camera object), I can see the used memory is increasing rapidly by "free" command.
I checked qtmultimedia camerabinsession.cpp as follows:
I found the constructor "news" several object, but there's no place to delete them.
I guess this is some how the root cause memory leak issue(blame me if I am wrong).
m_busHelper = new QGstreamerBusHelper(m_bus, this);
m_cameraControl = new CameraBinControl(this);
m_audioEncodeControl = new CameraBinAudioEncoder(this);
m_videoEncodeControl = new CameraBinVideoEncoder(this);
m_imageEncodeControl = new CameraBinImageEncoder(this);
m_recorderControl = new CameraBinRecorder(this);
m_mediaContainerControl = new CameraBinContainer(this);
m_cameraZoomControl = new CameraBinZoom(this);
m_imageProcessingControl = new CameraBinImageProcessing(this);
m_captureDestinationControl = new CameraBinCaptureDestination(this);
m_captureBufferFormatControl = new CameraBinCaptureBufferFormat(this);
3. If this is the reason of memory leak, will it be resolved?
Thank you very much!!!